Ardublock Adafruit MotorShield DC Motor

1,455 views
Skip to first unread message

Arnaud

unread,
Oct 15, 2013, 3:00:13 PM10/15/13
to ardu...@googlegroups.com
Hi,

There is my modifications to manage the Adafruit MotorShield. For now there is only blocks to manage DC motors.



Arnaud
ardublock-test.jar

jeandaniel planterose

unread,
Oct 16, 2013, 7:36:29 AM10/16/13
to ardu...@googlegroups.com
Bravo !

Super utile !

Merci !

JDP



2013/10/15 Arnaud <arnaud...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "ArduBlock" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ardublock+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

David Li

unread,
Oct 17, 2013, 3:02:22 PM10/17/13
to ardu...@googlegroups.com
Could you put this on github and send me a pull request? 

--
You received this message because you are subscribed to the Google Groups "ArduBlock" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ardublock+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
<ardublock-test.jar>

christop...@hotmail.com

unread,
Nov 16, 2013, 3:00:04 PM11/16/13
to ardu...@googlegroups.com
Do you thinks blocks adafruit for stepper motor ?

BB

Arnaud

unread,
Nov 27, 2013, 1:18:03 PM11/27/13
to ardu...@googlegroups.com
Hi,

There is my modifications to manage the Adafruit MotorShield with now both DC and Stepper motors.

Arnaud





ardublock-test.jar

christop...@hotmail.com

unread,
Dec 1, 2013, 8:09:00 AM12/1/13
to ardu...@googlegroups.com
Hi Arnaud,

I tested your new ardublock for Stepper.
It's a good job.
But i've a problem. I can't change the rpm for the same motor.

Look this program and if you can test.
http://img4.hostingpics.net/pics/449283Pap.png

Thanks
Kris

christop...@hotmail.com

unread,
Dec 2, 2013, 4:31:01 AM12/2/13
to ardu...@googlegroups.com
Hi Arnaud,

I find a solution. But could you create a block for that ?
It will be super.

Look, we can change rpm like this.
http://img4.hostingpics.net/pics/751053Pap2.png

Arnaud

unread,
Dec 2, 2013, 5:37:06 AM12/2/13
to ardu...@googlegroups.com
Hi Kris,

I found the solution but i've a problem with my Eclipse configuration. I can't compile anymore...

I hoope i'll find a solution soon.. I'll post here.

Arnaud

Arnaud

unread,
Dec 2, 2013, 3:03:31 PM12/2/13
to ardu...@googlegroups.com
Hi,

Here we are ! I found an alternative solution for my problem with Eclipse.

There is 4 methods to drive steppers with adafruit MotorShield:
  • stepper_motor.step(nb_de_pas, FORWARD, SINGLE);
  • stepper_motor.step(nb_de_pas, FORWARD, DOUBLE);
  • stepper_motor.step(nb_de_pas, FORWARD, INTERLEAVE);
  • stepper_motor.step(nb_de_pas, FORWARD, MICROSTEP);

I use the DOUBLE method

  • SINGLE - One coil is energized at a time.
  • DOUBLE - Two coils are energized at a time for more torque.
  • INTERLEAVE - Alternate between single and double to create a half-step in between.  This can result in smoother operation, but because of the extra half-step, the speed is reduced by half too.
  • MICROSTEP - Adjacent coils are ramped up and down to create a number of 'micro-steps' between each full step.  This results in finer resolution and smoother rotation, but with a loss in torque.

Arnaud



ardublock-test.jar

christop...@hotmail.com

unread,
Dec 2, 2013, 4:22:50 PM12/2/13
to ardu...@googlegroups.com
Arnaud,

It's a good job. It's all good.

Thanks.

Merci bien

+++
Kris

David Li

unread,
Dec 2, 2013, 5:45:42 PM12/2/13
to ardu...@googlegroups.com
Hi Arnaud, 

Could you send me a pull request so these can be roll into the next release? Thanks. 

David

deokgi seo

unread,
Feb 27, 2014, 1:12:25 AM2/27/14
to ardu...@googlegroups.com
This program does not run error. 
Please help me.

i am use window XP.





2013년 10월 16일 수요일 오전 4시 0분 13초 UTC+9, Arnaud 님의 말:

Roberto Garcia

unread,
Dec 21, 2015, 7:21:25 AM12/21/15
to Ardublock
Is there any chance to make it works with new Adafruit Motor Shield v.2.3? Thanks in advance
Message has been deleted

christop...@hotmail.com

unread,
Jan 16, 2016, 3:22:20 AM1/16/16
to Ardublock


Hi,
No the shield v2 doesn't work with ardublock. The librarie change, so it's impossible.
Maybe someone can create new block for v2 and add to block v1. But not delete the old block.

Thanks
Kris
Reply all
Reply to author
Forward
0 new messages