New to Forum and Programming. Seeking help with ActivityBot initial programming.
jeffomega
Posts: 17
Just built the ActivityBot with the Propeller board. I am trying to test the communication between my laptop using the SimpleIDE software as well as the Propeller program. I have no programming experience and am just trying to test the ActivityBot and see what we can do with it to get started. When I attempt to run a simple test program like SingingDemo.spin all indications seem to be that the program is received on the board but nothing happens... no sound. Also, I have run the HelloMessage.c using the SimpleIDE program using "Run with Terminal". It seems that the program loads to the board but no text message is displayed on the Terminal screen. What am I missing? Help is greatly appreciated before my sons lose all interest in robotics and programming. Thanks!
Comments
Here is a photo of our (as yet) nameless Bot. It should also be noted that I get only "success" comments from the software when sending test programs to the Bot... no error messages. In SimpleIDE we do get error messages if we change to anything other than the following Project Options: ActivityBoard, C, CMM Main RAM Compact.
Meanwhile, you can do some LED testing.
Download the attached .zip file and extract the contents to your Documents\SimpleIDE folder.
Use SimpleIDE menu Project->Open to open the blinky.side file.
Ensure your board is connected via the USB cable and powered on (green LED under power switch lit).
On SimpleIDE, click the serial port drop-down box next to the monitor icon to ensure the port is selected.
Use Load RAM & Run (green arrow), to program the board.
After programming, the yellow LED in the bottom right corner of the board should blink twice a second.
When you get that far let me know, and I'll suggest an experiment with the IDE to help us tell if your crystal is working at all.
Thanks.
--Steve
I am not familiar with where the attachment should be located on the thread for me to download. Can you confirm that it was attached and let me know where to find it?
Jeff
I'm so sorry. I forgot to attach the .zip.
Here you go.
Thanks, that blinky.zip file worked properly! My Veho360 also was making a beep tone with each blink of the light. However, I am having no success with any other files among the Parallax Demos that are supposed to play .wav sounds. I have tried "SingingDemo.spin" and "Test WAV Volume.c" using both SimpleIDE and the Propeller Tool with no success. The "Hello Message.c" does not print the text in the Terminal window.
Other than the Blinky program, am I ready to test the Ultrasonic sensors and the operation of the drive wheels? What programs should I run to test these features?
I notice that the "Blinky" program will run after I unplug the USB from the Bot, but it will stop when I plug the USB back in, or if I turn the power off... and will not restart when I turn the power back on. Can you tell me how to store a program in the Bots memory and then run it without being connected to the USB cable?
Thanks for all of your help.
Jeff
I have gotten Run with Terminal to print messages properly now. Not sure what I did differently however.
Jeff
I am making progress now. I finally came across the Tutorial link and I am working my way through and I am currently at http://learn.parallax.com/activitybot/calibrate-your-activitybot. I will see how things go tomorrow and post more questions if they arise. If you have any input on the audio problem, I would appreciate your help on that.
Thanks again.
Jeff
I looked very closely at your picture. There seems to be a small whisker of metal (or maybe dust) between two of the propeller pins near the crystal (see red arrow in attachment). A small piece of metal there could certainly cause problems. If it's really there (instead of a picture artifact) take a toothbrush, lightly push it down, and slowly sweep it out without losing track of it (don't let it go under the crystal for example).
Since you hear a click on the speaker with blinky, I'm assuming that will eventually work. Honestly, I had no idea the LED was related to the speaker ... nice how that worked out.
The "Test WAV Volume" project requires an SD card with the techloop.wav file on it.
I assume you have found some of the Ultrasonic Ping examples in the tutorials.
As far as blinky and other programs not running after power off, if you want a program to start up again after power up or reset, you need to save it to EEPROM using "Load EEPROM and Run" (the green down arrow button).
When you plug the USB cable into the ActivityBot, the ActivityBot will get reset. The same thing can happen if you plug in another USB device to your computer. That's the way USB works.
Thanks for the time you are taking to help with this. I did get the Techloop.wav to play from the SD Card through the Veho360 using the Test Wave Volume program. When I tried to load a different WAV file (a police siren wav file) on the SD card and modify the Test Wave Volume program to play the siren instead of the Techloop.wav, it continues playing the Techloop.wav. How to I look at what is on the SD card? How do I clear the EEPROM?
I calibrated the wheel servos and that seemed to go fine. Then I ran the Trim program and the Bot drove straight like I hoped, then stopped, but then spun backwords in a tight circle until I finally turned the power off.
Finally, where can I find instructions on how to connect the circuits and program the Ultrasonic Sensor that I mounted on a servo bracket?
Thanks again,
Jeff
We should add some kind of an SD card dump example to the Learn examples. Until someone posts that, the best thing to do is read it with a PC.
You clear the EEPROM by reprogramming with the "Load EEPROM & Run" button
I don't have enough experience with that to be helpful. Sorry.
There is a list of links at the bottom of this page: http://learn.parallax.com/activitybot
One of them is: http://learn.parallax.com/activitybot/navigate-ultrasound
Things are going well now. I have been working my way through the online Tutorials. The Bot was behaving unpredictably as mentioned earlier, so I re-ran the calibration of the servos and all is well now. It is rolling around and moving away from obstacles using its whiskers. I would like to install the ultrasonic eyes on the servo and rotating bracket that I purchased separately (Product #570-28015). I have not been able to find any instructions on the Parallax website about how to connect this to the Propeller Activity Board. There are illustrations for other Boards, but not for the ActivityBot when using the 570-28015.
Regarding the SD card issue: My PC does not see the SD card in the list of "Devices with Removable Storage" under "My Computer".
Thanks again for your help.
Happy New Year to You!
Jeff
Jeff, at http://learn.parallax.com/activitybot/navigate-ultrasound you'll find connection instructions and code for the Ping sonar sensor itself. I'm not sure if there's information available for the rotating bracket & PAB.
-Thomas
The remaining issues are these:
1. How do I connect the servo and Ultrasonic sensor to the ActivityBot board?
2. How do I access (view, augment, delete) the data on the SD card?
3. A new issue: I purchased the EMIC 2 but have not found any instructions on how to connect it to the ActivityBot board.
All help is appreciated.
Jeff
In the post from banjo just above your last post there is a link on how to use the ping with the activitybot. The link below has the documentation on how to install and connect the servo. Download version 2.1.
You will have to use code for the standard servo to operate the bracket. go to the parallax tutorials, Propeller C learning System, Simple Devices, Standard Servo for the info and sample code. Tom
http://parallax.com/downloads/ping-mounting-bracket-kit-documentation
I asked the same question and got this from Courtney.
As BenthePI mentions above, I just recently posted some code for this kit that you can try with your ActivityBot. See the link below to view the full thread:
http://forums.parallax.com/showthread.php/160464-Seeking-source-code-for-ActivityBot-with-ping-amp-sweep-%28570-28015%29-in-Propeller
If you are unfamiliar or unpracticed with building circuits, please do go over all of the Propeller C tutorials, not just the ActivityBot ones. They will be very helpful in building your basic electronics skills.