Arduino base station and rover project
The Arduino hobby project saw me return to a robot project. The 3rd time, 20 years ago, it started by wire wrapping the processor board
based around an Intel 8085, writing the monitor ROM in assembler and communicating via an async port at 9600 to my PC.
The basic routines all worked, it could play random tunes at random times all was well-ish.
It never progressed beyond the wire wrap board and was never mobile.
Time to play again. I settled on Arduino primarily because Jaycar is within
walking distance and they stocked a lot of Arduino based products. First considered a 4 wheel chassis (and it was on sale) but went
with the 3 wheel base after reading people having problems with different 4 wheel robots turning on carpet.
The basic idea was to build a little rover that could randomly wander around the apartment, play a tune, say hi, ask to be fed.
I then decided to add more sensors and decided to split the project into two; a base station and a rover. Nasa on a tiny scale.
The base station can have an unneccesary number of displays and sensors and can be permantly online. The rover can have basic
positional sensors and communciate with the base station via bluetooth.
I've been testing small modules and incorporating them into the main projects as they're working. Nothing hard-wired yet,
everything is still breadboarded.
Testing new components on a 2nd breadboard and integrating as the subunit test works. Had lots of problems getting the 8 x 7 segment
LED working in the main project. As a test it could update its runtime 10 times a second for over 24 hours. Integrated into main
project displaying text once a second it'll become corrupted. Once it worked for 18 hours then went, other times just seconds.
- Arduino Mega 2560
- Ethernet Shield 2
- Arduino Compatible Real Time Clock Module
- Arduino Compatible Temperature and Humidity Sensor Module
- Arduino Compatible Photosensitive LDR Sensor Module
- Barometric Pressure Sensor Module & temperature
- An unnecessary number of I/O to play around
- Wired ethernet
- Expose status on webpage, that's done, works internally I'll have to get it publically visible
- Send sensor readings to IoT website
- Act as go between between rover and world
Basic chassis is bolted together.
- Arduino Uno or Arduino Mega 2560
- Starting with Wall Dodging Robot
- 2 Wheel Drive Motor Chassis Robotics Kit
- Arduino Compatible Stepper Motor Controller Module
- Arduino Compatible Dual Ultrasonic Sensor Module
- It'll need to monitor its battery and ask to be fed
- Extra points if it can feed itself
- It'll need to know it's plugged in so it won't start moving
- Bluetooth comms to base station
- 2019-02-28 - Had to drop things for now as after work hours was becoming the same as work hours
- 2019-02-20 - Displayed hard-coded test alternating "Idle " and " Loop" for 8 days before the 8 x 7 segment display fails to display anything.
- 2019-02-11 - Displayed hard-coded test for 20 hours, zero problems. Display current time it falls over within the hour. RTC? buffer? snprintf? time_t?
- 2019-02-10 - Start stress test, 7 segment displaying hard-coded text updating once per second, 5 browsers requesting status page once a minute
- 2019-02-10 - Found a bug in an RTC library, fn declared as returning a bool returns nothing, might contribute to display corruption.
- 2019-02-10 - Found bug in my change to fonts causing a buffer overflow, I automatically typed '0x' instead of '0b', might contribute to display corruption
- 2019-02-09 - War Games 'Game time remaining' algorithm coded earlier in the week displayed on a 128x128 display
- 2019-02-01 - 8 x 7 segment display moved to main project, sometimes runs seconds, once ran 18 hours before display corrupts then ignores commands
- 2019-01-31 - Sending commands via async to switch the 7 segment between different outputs, e.g. time, date, runtime, temperature, etc
- 2019-01-26 - 8 x 7 segment display updating every tenth of a second to display the runtime, sending sensor reading to IoT web site, send SMS via API
- 2019-01-20 - Ethernet Shield 2 installed, syncing RTC via NTP, return http status page to request on port 80, display date and time on 2x16 LCD
- 2019-01-16 - Temperature displayed in 8x8 LED grid
- 2019-01-09 - Picked up Mega 2560 learning kit
- Unpack boxes and try to get an LED to blink, hey it's my first Arduino project. Huh, there's an LED onboard. That was easy.
- External LED, brightness fade in and out via hardcoded loop
- External LED, change brightness with potentimeter
- Ultrasonic proximity test
- Temperature and humidity, RTC, EEPROM
- Order Ethernet Shield 2 to work with Mega 2560
- Run through Ethernet tests, request a page, return a page
- Try to connect to https, no can't do that, thimk about things
- NTP, as RTC was out about 45 seconds a day
- Test calling a website API, yay, sent an SMS
- Try to post sensor readings to IOT sensor website, expand to temperature, humidity, air pressure, light level
- Display runtime to 1/10 second on 8 x 7 segment LED, works a treat
- Integrate 7 segment LED into main project it works for a while then output is corrupted
- Test 7 segment LED with different library, nicer library, works a treat, incorporate into main project it fails
- Spend too much time getting LED to work, strip project to nothing and slowly introduce components, sometimes it works other times not
- Work out algorithm to display game time remaining from War Games. Switch between 'game time' and 'work time'.
- Add TFT display to emulate WOPR game time remaining display - it will be installed on the side of the base station in an out of the way
place as it was meant to be.
Robot projects history
- 1977 Wooden chassis about the size of R2D2, a few lights and switches and tape recorder
- 1981 Based around How to 'Build Your Own Working Robot Pet' by Frank DeCosta.
- 1997 Wire-wrap processor Intel 8085 processor board with monitor ROM
- 2019 Arduino based boards and kits, I can spend most of my time in software where I belong