This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-01-09 19:22:40

LuisNolasco
New Scratcher
Registered: 2013-01-09
Posts: 1

Step motor control-Scratch for Arduino

How can I implement   a stepmotor(uniderectional ou bidirection)  control, x axis movement, using scratch for arduino and arduino?

Can someone send an example?

For servo motor is ok(only one port is necessary). But for step motor , as far as I understand, it´s necessary 4 outputs, but the scracth for arduino supports only 3, although the arduino´s hardware suports more than 3.

Thanks in advance,

Luis.'.

Offline

 

#2 2013-01-11 21:28:48

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Step motor control-Scratch for Arduino

I believe this goes in Connecting to the Physical World, I'll have it moved for you.


Why are the secret organizations getting all the attention?  mad

Offline

 

#3 2013-01-12 14:01:06

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: Step motor control-Scratch for Arduino

LuisNolasco,
Here is my Scratch mod for two servo motors by Arduino.
http://squeakland.jp/abee/tmp/NanoBoard … Camera.zip
This mod was used for controlling the huge giraffe robot.
http://thecardboardcollective.com/2012/ … faire-2012

Offline

 

#4 2013-01-22 08:15:34

eventexception
Scratcher
Registered: 2011-04-08
Posts: 500+

Re: Step motor control-Scratch for Arduino

Can you add a readme.txt to your .zip file how to do what with these files?

Stepper motors can be extracted from defunct CDROM and disk drives.

What hardware do you need?  Which arduino? Power driver?
Please make a list of and approx. $ cost of each item.

Offline

 

#5 2013-01-23 05:04:47

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: Step motor control-Scratch for Arduino

eventexception wrote:

What hardware do you need?  Which arduino? Power driver?

You need two servo motors for radio control model.
http://arduino.cc/en/Reference/Servo
You may drive small motors by USB bus power (5V, 500 mA max) . If you want to use big motors, you need an extra power supply. It depends on the specification of each motors. Connect motors to digital pin 9 and 10 of your Arduino. You can use any type of Arduino that supports these pins.
Of cource, you need upload my sketch (pde) to your Arduino before you play.
Please check the prices at your local shop. I'm not sure about the prices in your country.

Last edited by abee (2013-01-23 05:05:48)

Offline

 

#6 2013-03-29 03:56:26

SimpleScratch
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: Step motor control-Scratch for Arduino

Here is an alternative approach
Its not packaged up but it does work  smile

http://cymplecy.wordpress.com/2013/01/1 … mparduino/
Simon

Offline

 

Board footer