Motor Party!

it is like -19213 degrees outside, so i spent the day workin’ on my motor shield design and then had a MOTOR PARTY!

Here is a preview of the motor shield for Arduino that I’m workin’ on…it can drive 2 hobby servos as well as up to 2 steppers or 4 bidirectional DC motors.

  servo_init();
  servo1_enable();
  servo2_enable();
  motor_init();
  stepper1_enable();
  motor4_enable();

  while(1) {
    servo_setpos(1, -2000);
    servo_setpos(2, -2000);
    motor(4, FORWARD);
    for (i=0; i< 250; i++) {
      stepper(1, FORWARD, SINGLE);
      motor_setspeed(4,i);
      _delay_ms(5);
    }
    motor(4, BACKWARD);
    servo_setpos(1, 2000);
    servo_setpos(2, 2000);
    for (i=0; i< 250; i++) {
      stepper(1, BACKWARD, SINGLE);
      motor_setspeed(4,i);
      _delay_ms(5);
    }
  }

Adafruit publishes a wide range of writing and video content, including interviews and reporting on the maker market and the wider technology world. Our standards page is intended as a guide to best practices that Adafruit uses, as well as an outline of the ethical standards Adafruit aspires to. While Adafruit is not an independent journalistic institution, Adafruit strives to be a fair, informative, and positive voice within the community – check it out here: adafruit.com/editorialstandards

Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.

Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 38,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 11/15/2024 Featuring Adafruit bq25185 USB / DC / Solar Charger with 3.3V Buck Board! (Video)

Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: Programming Pi 5 PIO, CircuitPython & VSCode and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

Adafruit IoT Monthly — Halloween, WiLo, and more!

Maker Business – Adafruit Daily — Slipping through Nvidia’s grip on A.I. chips

Electronics – Adafruit Daily — Crouching LED, Hidden Photodiode

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



11 Comments

  1. Will this be ready as a kit or schematic? It so when!!

  2. Excellent!

  3. 🙂 You can call these guys the ‘Gotham City Rollers”.

  4. >drives 2 steppers
    unipolar or bipolar

  5. these steppers that i had in my STUFFBOX are unipolar, but from what i understand, the hardware for bipolar is the same so if i could get my hands on a bipolar stepper it would be straightforward to add code support

  6. me likey! i’d buy that for a dollar … or however many it costs 😀

  7. I was listening to ‘Pilgrims of the Mind – Something’s Pulling me Under’ on SomaFM’s groovesalad while watching this video. The flappy, buzzy motor sounds were in perfect time with the music. Happy++

  8. ladyada — disassemble an old floppy drive. It will likely have bipolar. Or, if you can get your hands on a six-wire stepper, you can connect it up as either unipolar or bipolar. Great to see software for this otherwise orphaned shield board. Now … does it work with the boarduino (obviously not, but I thought I’d just ask that question. Maybe with the addition of a set of holes off to one side into which you could solder a boarduino? Or for that matter, just put the Atmel on the motor control board, with the six-pin angle connector and be done with it.)

  9. ladyada – Are schematic and pcb available? It’ll be great for my project and I’ll buy the pcb if available.Cool video.

  10. I’ve been working on my own motor control interface for the Arduino, but it sucks so far because I’m not really a very good electrician at all, at all. Can’t wait to see what you came up with!

  11. these are in the shop now…
    http://www.ladyada.net/make/mshield

Sorry, the comment form is closed at this time.