Arduino Micro + Lego

Posted on 19/06/2013 by spacegoat
Modified on: 13/09/2018
Project
Press to mark as completed
Introduction
This is an automatic import from our previous community platform. Some things can look imperfect.

If you are the original author, please access your User Control Panel and update it.

Re-Write After a bit of research, I finially have two fully working sketches.  One is for autonomous mode using dual ultrasonic SR04 modules and the motors are running straight from a L293D and 6 volts worth of double A's.  I did manage to get speed control, but not really sure how it is working since the pinout is not addressed as a voltage and it doesn not appear to be PWM...but it is good enough to match speed on both of the old spybotic motors. The second sketch is bluetooth through ...


Arduino Micro + Lego

Re-Write

After a bit of research, I finially have two fully working sketches.  One is for autonomous mode using dual ultrasonic SR04 modules and the motors are running straight from a L293D and 6 volts worth of double A's.  I did manage to get speed control, but not really sure how it is working since the pinout is not addressed as a voltage and it doesn not appear to be PWM...but it is good enough to match speed on both of the old spybotic motors.

The second sketch is bluetooth through the BT2s module and BlueTerm using u/d/l/r for direction commands. 

My next task will be to integrate the two sketches so it will run either mode.

 

Avoid hitting objects and eventually remote controlled with bluetooth

  • Actuators / output devices: LEGO spybotics geared chassis + lego technics tracks
  • Control method: Bluetooth and Autonomous
  • CPU: Arduino Micro
  • Programming language: Arduino C++
  • Sensors / input devices: HC-SR04, L293D H-Bridge, BT2S
  • Target environment: indoor
Flag this post

Thanks for helping to keep our community civil!


Notify staff privately
It's Spam
This post is an advertisement, or vandalism. It is not useful or relevant to the current topic.

You flagged this as spam. Undo flag.Flag Post