Hi.
I am making a light following robot (later it will get GPS position to be able to follow a person or something of my chosing).
I have made a very simple setup. I have two continuous servos, two LDR's and two 08M's.
Everything mounted on a single PCB.
The problem I am having is that one of the motors always seem to hesitate and be on or off randomly. Also the motors are just very unpredictable in general (with this setup that is). When I use them independently they work fine without any hesitation or anything.
This is the code on both of the 08M's:
I'm thinking maybe it can be a voltage drop issue...
Or could it be interferance between the two picaxes since they are on the same PCB and connected indirectly.
Any ideas as to what could be a better solution hardware vise. Maybe use a single, more powerfull chip. I have 18x and 20x2.
PS. The GPS module needs UART. Maybe going for more powerfull chip now will reduce the pain later. Can the picaxe chips even use UART?
The module: http://uk.farnell.com/rf-solutions/gps-320fw/module-gps-receiver-w-ant-ttl-rs232/dp/1718690
Here is something taken from the datasheet: "Protocol NMEA-0183 V3.01
GPGGA, GPGLL, GPGSA, GPGSV, GPRMC, GPVTG, GPZDA
4800 baud, 8, N, 1"
I am making a light following robot (later it will get GPS position to be able to follow a person or something of my chosing).
I have made a very simple setup. I have two continuous servos, two LDR's and two 08M's.
Everything mounted on a single PCB.
The problem I am having is that one of the motors always seem to hesitate and be on or off randomly. Also the motors are just very unpredictable in general (with this setup that is). When I use them independently they work fine without any hesitation or anything.
This is the code on both of the 08M's:
Code:
SERVO 2, 150
SERVOPOS 2, 165
pause 10
do
loop
Or could it be interferance between the two picaxes since they are on the same PCB and connected indirectly.
Any ideas as to what could be a better solution hardware vise. Maybe use a single, more powerfull chip. I have 18x and 20x2.
PS. The GPS module needs UART. Maybe going for more powerfull chip now will reduce the pain later. Can the picaxe chips even use UART?
The module: http://uk.farnell.com/rf-solutions/gps-320fw/module-gps-receiver-w-ant-ttl-rs232/dp/1718690
Here is something taken from the datasheet: "Protocol NMEA-0183 V3.01
GPGGA, GPGLL, GPGSA, GPGSV, GPRMC, GPVTG, GPZDA
4800 baud, 8, N, 1"