Hi Again Folks
Got a little more work done since the last update.
Now hardware is pretty much hooked up for the first attempt, I’ve been concentrating on the coding.
I wrote a small program ( but took me a while as had to learn most of it ) which communcates back and forth between the 701 and the OOPic. Was written in C# and here are two screen shots :
In the first you see the main tab of the program. The feed is live from the Orbit Webcam at about 10 frames a second.
The top button is used to set collision detection on or off, if on then you can not move Wire forward or back if anythng is in the way within the set distance.
The direction buttons move him in that direction for as long as they are depressed ( … Until they get happy ?? ).
The front and rear sonar readings are shown.
The speed can be set from 0 ( pretty pointless as does nothng ) to 100 … which is full speed ahead captain.
Connect and disconnect are just used to connect to and disconnect from Wire ( Duh )
The second image shows the settings, the COM port refers to the port the OOPic is connected to.
Have not yet played with Baud rates, just using 9600 at the moment. Will try higher later when I get time.
Collision Distance is a percentage where 0 represents the closest and 100 represents the furthest the Ultrasonics operate between.
Not really spent a lot of time on this as it will not be used in the final project but it did show communications between the 701 and OOPic through the serial com port are fine in both directions and working at the same time. It has also let me start on the protocol between the two processors, at the moment set to two bytes. The first is the command ( eg forward, turn left … From the 701 or frontsonar from the OOPic ) and the second is the value.
The actual program that will be runnng does not have an interface like this as the 701 will be doing the work itself without human interaction, however it is roughly how I see the web interface looking for remote users.
By the way still having fun … Although my brain seems to have fried, anyone know how to reboot it?
Also started looking at GPS so Wire knows where it is, problem is that in the big bad world ( Where I want it to eventually live ) this is ideal … But testing in the flat I would do better with just wheel encoders … Any ideas on that ?
All the best.
Richard