Ok this is going to be awesome!
So here is my Idea:
1 Sure DC SS503V100 Dual Axis Compass . used for robot orientation and also I will snap shot the angle the ping was pointed when it was shot.
4 Ultrasonic Ping Sensors HC SR04
1 one Arduino Pro Mini
Connect all 5 Sensors to the Arduino then connect the Arduino to the EZB4.
I have done some testing all this will work nice. I'm going to be working on putting them into a single package.
I'll get it all wired up and working and will update this thread in a few days.
By Luis Vazquez
— Last update
Other robots from Synthiam community
Cjmekeel's 3 Axis Skull Halloween Prop
Finally got my EZB in the mail. Put together a quick video to show off the functionality of my project. Keep in mind...
DJ's Cookie Monster Robot
A few years ago DJ Sures had built a Cookie Monster robot that ran on its own with 2D autonomous programming. Today DJ...
DJ's Cyborg Snowman
What do roboticists do when it snows? Click to find out Description: We had a big snowfall in Calgary Canada this...
Firstly, the ultrasonic sensors don't use UART on the ez-b. They can be plugged direct into the ez-b digital ports. That compass sensor could be scripted into ARC too.
I don't see the need for the arduino at all. Connecting an arduino has been done before.
Tech
Techno, I don't think you are following the post/idea.
All of the sensors above will connect to one UART port, freeing up 8 digital ports for the HC SR04 alone.
The EZ-B will connect to the Arduino via serial. The EZ-B will send a command which will trigger reading of the sensor(s). The 5 sensors will connect to the Arduino. The Arduino will read the sensors. The Arduino will return the result back to the EZ-B via serial. ARC stores it as a variable. ARC can use that variable for whatever.
It sounds like a great idea to me. It will free up a lot of ports on the EZ-B.
However, where has the Arduino been connected to the EZ-B like this before? I must have missed that topic.
First you still need some type of voltage regulator for many of the sensors. The arduino board can take in 6 to 12 volts and puts out a regulated 5 vots.
Each Sensor uses a ping on the EZB. so your talking about using a min of 2 ports per Ultrasonic sensor and the addition of the Dual compass what would use a uart port. (as i have had little luck using it on I2C)
so all in all I will have a little device that is about 4 in x 4 in x 1 inch that does all that and only uses one UART Port on the ezb.
Here is one.
Haha Rich your so fast!
here is the one.
Thanks @d.cochran for your quick research
Awesome!
Ok I understand now. Thanks.
@Rich Since i am moving this to the UART port.
I will have command that will allow for pinging for each or all sensors.
Also i have not totally wired up all 4 . I think i can use a single pin for ping. and have the echo pins separated.
have you or anyone else trying to trigger multiple sensors on a single digital pin for Trigger?
I haven't tried that and I haven't noticed anyone else say they have (but I may have missed it).
In theory I can't see why it wouldn't work since it's the echo which is needed as far as I am aware (I'm no expert in how they work mind you). In theory it would trigger all at the same time, the only issue I can see may be that the time delay between receiving on the echos may make the readings inaccurate on sensors 2 to 4. It may also cause interference on sensors depending on what they are aimed at (ghost signals or something like that I think they call it).
Does the Arduino have enough pins for 4 triggers and 4 echos? If it does I would do it that way personally but only because I don't understand enough about the sensor to know one combined trigger wouldn't cause any problems.
I don't think anyone has tried using a single trigger into multiple sensors mainly due to the fact that the resultant info returned back would need to be fed into different ports.
A simple test would be to try it on the EZ-B or Arduino. Wire up for 2 sensors, put both triggers on one port, echo 1 on another port and echo 2 on another port. Try reading one then the other then both. See if the both result is the same as the first two.
You won't be able to get the correct values from the arduino until the issues with the UART is fixed. I've tried .
I did some testing and yes I can use the same trigger pin for all Sensors. Woohoo my responses are all in the rang of 1 - 127.
Right now I am taking the project off the bread board and doing some soldering , wrapping and the such to make it more permanent.
Some one was asking why would you want to do this and even though good answers have been given .. here is why i need it.
I am building this car for JD. when he sits in it. all i have to do is plug the car into the 4 pin UART.
Now the car is part of JD. So when he is in the car and moves forward , he will not walk but soon as you unplug the car the know he should go forward.
now that he is hooked to the car he can use all servos and sensors on the car via commands to the arduino board via UART!
Just think .. you can make tool and accessories for him .. and all you have to do is plug it in..
make a script that will poll that uart port and when it finds something it knows how to use.. then bingo!
Im going to make him a ray gun too!
That is so cool Luis!
I agree , very cool
Ok here is the video on step too...
Thanks for the Software update @DJ Sures
Hope you guys find this kinda stuff useful.
YES!
keep going...lol
just roli along... little humor. lol
j
I have been asked for the Arduino Sketch Source.
Here ya go ...
Let me know if you need any more information.
really awesome idea! I totally dig it
I'm also glad the latest release is working for you
Thanks @DJ Sures , I really was not having issues because I authored the software in the Arduino so I could just stay with in the 0-127 range unlike @mtiberia who is talking to devices he has not control over the firmware.
Soon as I get the servo for JD head I will be posting many videos of him interacting with my little girl Sativa. I have been working out code that will read along with her in her story books , reminding her to change pages and using vision to insure the correct book and page.
I have been able to get some simple ocr so JD should be able to read the text from the book.
What a neat idea by having the robot interact with the child. JD can be her jiminy cricket like the teddy bear from AI
you can have the robot also helping her with life lessons - maybe when she has a bad dream/nightmare you can run a program for her that talks her to sleep or tells a story of why there is no boogy man
Right now we are helping her speech by making sure that the words she is having trouble saying are part of the command set she will use with the robot. That way the robot only responds when she pronounces the words correctly , I think in the short time we have tested this , her words have gotten better.