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.
@Rich have a look at this site there is a lot of new really cool stuff on it im sure you will find some thing along the lines of what you need Adafruit
There is probably cool stuff for every one there I find alot
Rich, these could be a cheap way of doing wireless temp sensing, (not sure if you can add more than three).they also do RH These should be designed to give a long battery life. It would be easy to hack the RF signal code so a PIC or Arduino via a 433Mhz AM receiver hybrid could decode it then send it serially to the PC. I could help with this if you need it.
www.ebay.co.uk/itm/3-Sensors-Wireless-Weather-Station-Thermometer-Humidity-Temp-DCF-RCC-w-Alarm-/181324625547?_trksid=p2054897.l5677
Tony
Thanks, I'll look in to them. I already have a USB RF transmitter/receiver so hopefully I just need to tinker with EventGhost so make it pick up the signals.
This is super intersting and something I've kind of wondered about. Thanks for sharing this info.