Hello EZ Robot community.
I though since you guys have been so good to me in helping with information need, I would take some time to show you guys what I'm doing with my Robotics Build.
The Goal for my tests today are:
- Get my cheap (non i2c) ultra sonic sensor to work over i2c for my EZb project.
- Get the TMP39 Sensor (analog) to also work over i2c for my EZb project.
- Have a solution to get 7.5 volts down to 5 for my sensors when i get my ezb 4 board.
- Try to consolidate 1 and 2 into a single i2c device id.
That said. I am starting with this controller.
Using this controller to run my 5v sensors will be easy because it has a RAW Pin (Top Left Pin in picture) That can take up to 9v and will put out 5v regulated for my sensors to use. ( this will be important when I get the EZb 4 boards in.
So this will solve Item 3 and 4 on my list.
Item 1: Ultrasonic Sensor I have a 4 pin Sensor to the pins are 5V, PING , ECHO and Ground
I have the 5V and Ground connected to the ATProMini. I have the PING on D2 of the ATProMini controller i have the ECHO on D3 of the ATProMini Controller
Item 2: Temp Sensor. It has 3 pins , They are 5V, Ground and Signal.
I have the 5V and Ground connected to the ATProMini I have the Signal ping connect to A0 of the ATProMini.
A4 and A5 on the ATproMini are SDA and SCL
I connect these to the ezb baords SCL and SDA pins.
please see this video
sorry for the 40 sec silence at the beginning and no sound at all on the screen shots.
But I think you can see the video and it will show you how i got the temp and distance back from my one i2c device.
I just find digital and analog sensors are much cheaper than i2c stuff , so this will allow me to make any sensor and i2c sensor. and get some voltage regulation at the same time .
At the end you can see I use EZ script in EZ builder to pull the info from the ATProMini and set a variable for $distance (in video it came to 30 inc) and a a temperature of 76.06 Deg F.
I have not seen many folks talking on this level on this forum so I though I would leave it at this and if anyone is interested in more info or the code for the ATProMini please let me know.
@Richard R Look at the board for the link you sent. this is the older board and has pins A4 and A5 in the board and not on the edge. This is OK as i have some like this too but the new design like pictured in the #1 post has them on the edge of the card.
they are unlabeled and next to the A2 and A3
To program them you'll need a TTL to USB converter, correct? And the standard Arduino IDE will work with them?
@Justin.... Yes the arduino IDE will work... and you can use this Cable to program it...
Justin I can't remember if you were into the early testing of some of the WiFi modules but if so they came with a USB-TTL circuit board that could also be used.
@Richard - nice, it has the Ftdi built in and is nicer than the exposed usb dongles.
Hello I believe you can now program any arduino wirelessly now with a Bluefruit EZ-Link - Bluetooth Serial Link & Arduino Programmer
Folks have been asking about programing the ATProNano.
Here is a diagram to show how to use a Arduino Rev 3 to program the Nano.
! Remove the AT Chip from the Arduino board and wire like this to make a programer for your nano. This will not damage the chip if you do not remove the AT chip from the Arduino Rev 3 board but it will not work either.
I used a bit of mold-able plastic to make a plug i can use with out waring on the wires.
Slightly taking it off topic a little (kind of) but is there a method of doing something similar wirelessly? RF, Bluetooth or WiFi maybe?
I do have an ulterior motive and hate to pull a topic off topic especially when the EZ-B or ARC may not be involved (however I suspect it could be useful with the EZ-B UART port too). Basically, for about a year now I've been trying to get around to making 6 remote room temperature sensors based on Arduinos (Arduino, DHT11 sensor & LCD or LED display) which will communicate with Jarvis wirelessly (via RF 433 ideally) so I can track each room temperature of my house for cheap... I'd love to pick your brains about this sometime.