erco
Senior Member
I had some unanticipated drama in wrapping up a robotic 08M2 project in the wee hours of this morning on a tight deadline. My 08M2 was maxxed out; I was using all pins, including C.5 serin and C.0 serout. C.5 was wired to an active-high limit switch a foot away from the board. My scratchbuilt board worked fine until either of the DC motors turned on. The drive motor was switched on (not even PWM) through an IRF510 mosfet, the steering motor through a pair of relays & limit switch in my bidirectional homing circuit. When either motor turned on, the 08M2 would freak out, reset, lock up, you name it. I already had 3-cap delta filters on both motors, flyback diodes on the relays, two bypass caps right at the Picaxe (0.1 and 10 uF), and big beefy wiring throughout. Checked & double checked the board, swapped 08M2 chips, tested everything. Single battery supply BTW, five AA batteries and a 78L05 5V regulator for the Picaxe.
I should add this was the first time I've tried using serial input pin C.5, I needed that one extra input. Around 2 AM and out of options, I figured the best solution would be to use a "real" input pin and decided to build a similar board using a 14M2. I had only soldered on the socket when I realized that perhaps the foot-long wire attached to serin pin C.5 was acting like an antenna and picking up enough noise to reset the chip. I did another test after adding a DISCONNECT command at the start of the program. Boom, instantly everything worked perfectly. Now I have to do a hard reset at each new download, but that was a small price to pay and certainly easier than building another entire board. It felt good to get my money's worth out of that 08M2. Resorting to a 14M2 for just one input pin felt like cheating.
So I learned my lesson, when in doubt, DISCONNECT!
I should add this was the first time I've tried using serial input pin C.5, I needed that one extra input. Around 2 AM and out of options, I figured the best solution would be to use a "real" input pin and decided to build a similar board using a 14M2. I had only soldered on the socket when I realized that perhaps the foot-long wire attached to serin pin C.5 was acting like an antenna and picking up enough noise to reset the chip. I did another test after adding a DISCONNECT command at the start of the program. Boom, instantly everything worked perfectly. Now I have to do a hard reset at each new download, but that was a small price to pay and certainly easier than building another entire board. It felt good to get my money's worth out of that 08M2. Resorting to a 14M2 for just one input pin felt like cheating.
So I learned my lesson, when in doubt, DISCONNECT!