Masahiro Mizuno
Published

PCB Magnetic Coil Robot "SHAKEY"

I built an electromagnetic coil on the PCB and made a simple robot.

IntermediateShowcase (no instructions)393
PCB Magnetic Coil Robot "SHAKEY"

Story

Read more

Custom parts and enclosures

PCB gerber data

Magnetic coil PCB gerber data

Schematics

Schematic

Code

move head program

Arduino
This code swings the head with a short sound like a metronome.
// SETUP =================
#define aA 440 // frequency in Hz
#define bA 880 // frequency in Hz
void setup() {
  pinMode(16, OUTPUT);   // PWB coil Enable (pin 16(=A2))
  pinMode(17, OUTPUT);   // PWB coil Phase (pin 17(=A3))
}
// LOOP ==================
void magOn(int NS, int tt) { digitalWrite(16, 1); digitalWrite(17, NS); delay(tt); digitalWrite(16, 0); }
void loop() {
   magOn(1, 80);        // swing head R
   tone(A5, aA, 20);    // short sound (A5 pin is for buzz)
   delay(150;);
   magOn(0, 80);        // swing head L
   tone(A5, bA, 20);    // short sound
   delay(150);
}

Credits

Masahiro Mizuno

Masahiro Mizuno

10 projects • 22 followers
Chief Prototypist. 20+ years R&D experience in wide range of technology.

Comments