Barc gets a Makeover | Cypress Semiconductor
Barc gets a Makeover
The great Barc re-make has begun. According to Raul, he's great at Maker Faire because he sits on the bench and just runs around a lot. But when people play with a dog all day, he gets tired. So we need to make it easier to change batteries, add an on-off switch, and reassure people that he's awake with an LED. So, this weekend, I pulled him to pieces and started Frankensteining his body parts.
First of all I removed the upper deck and made sure I could arrange the batteries and proto board on one level. That worked OK and I rotated the PSoC prototyping kit to make it easier to program and tune the program. progress! Then I added an on-off switch. it was a little crammed in there because I am consuming almost all of the rows of the proto board for either the PSoC kit or the motor board. I could de-solder some of the PSoC pins and space things out but the thought of more soldering was a bit daunting. I know, practice makes perfect. But I need practice to make competent! Anyway, I figured out how to run the power through the switch and onto the proto board rails and pretty soon got my dog wired up... wrongly.
So, removing the upper level of the robot clearly works but the eagle-eyed amongst you will spot a tiny flaw in the layout. Yeah, I managed to connect power to ground. Surprisingly the PSoC kit resolutely refused to turn itself on! Ooopsy. Don't tell my house insurers. Or wife.
So the next step is to hook up the motor board to the PSoC kit. There are six wires needed. Two pairs of PWM inputs that determine the speed and direction of the wheels, plus a pair of on/off controls. I ran the PWM wires underneath the motor board using yellow wires. The other two wires are for the sleep pin (effectively an off signal), in orange, and a fault pin (to shut down an overheating motor board) in green.
You can also see that I put a row of header next to the on-off switch, which really tidies up the power and motor output wiring. Here is the whole thing wired up and ready to drive.
So the next step is to put Barc's nose back on, it's going to be a long night!