Welcome to Synthiam!

Program robots using technologies created from industry experts. EZ-Builder is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.
Get Started

Asked — Edited

How To Play Audio Tone

I'm trying to play the tones that in the scripting list like C1,D1,E1,F1 they are at the bottom in script help how do I play them I think it's through a digital port but not sure please help

#6  
@ Robot-Doc, you might be onto something...So Roomba("C1") Port (0) have to see what the Roomba owners say!:)
United Kingdom
#7  
Roomba commands are;
Init
EnableSensors
DisableSensors
PowerOff
SpotClean
MaxClean
DisableAllBrushes
MainBrushOn
MainBrushOff
SideBrushOn
SideBrushOff
VacuumOn
VacuumOff
SeekDockingStation

As far as I'm aware there are no commands for the tone on the roomba.

I know it was mentioned a while ago that DJ was thinking about removing the tone control. There used to be a control for a speaker which has gone so I presume the tone command in EZ-Script also went. I assume the references to the tones in the help are left over and have been missed.
#8  
The Roomba tone panel is still installed and the notes on the help menu seem to match. It may be used somehow with the send serial command.


User-inserted image
United Kingdom
#9  
Tones were removed, read this for info.

Roomba tones are not available as EZ-Script commands either. They may be possible using SendSerial() however since no other SendSerial commands are listed (and there could be literally thousands) it seems the notes are the remains of what once was and have not been noticed/removed from the help.

To the original post, you are unable to use scripts and those notes to create tones from a speaker, you will require the PWM method (if it works, I haven't looked at it) or use a sound board. With the V4 and it's on board speaker/sound board the tones from a speaker are now redundant anyway on all new boards (when they are delivered).
#10  
j_snake_2000,

If you are requesting Irobot Roomba or Create notes, here are some sendSerial commands.

#plays startup notes
sendserial(d0,57600,128,132)
sendserial(d0,57600,140,0,4,62,12,66,12,69,12,74,36)
sendserial(d0,57600,141,0)

Here is a simple beep with sendSerial to Roomba or Create.
#Beep
SendSerial(D0,57600,140,3,1,90,32,141,3)

You can look at the Irobot Roomba or Create interface commands for more info.
Otherwise you can manually play notes notes as Robot Doc said.
I just tried it, added on my current project, maybe not the lastest EZ builder, and it worked.
I went to project, add, robot, Irobot roomba tones.
Try the sendSerial, they are more versitile and can be used with script.
Steve S
#11  
Gotta luv it when a puzzle is solved and other solutions presented! @Rich, @Robot-doc ,@Steve! This is why the community "rocks" to quote DJ:)