S4A Arduino Leonardo

1,085 views
Skip to first unread message

wge...@gmail.com

unread,
Sep 29, 2013, 5:08:08 AM9/29/13
to s4a-co...@googlegroups.com
Hi there.

I just stumbled across Scratch for Arduino this last week.

It's a great platform and as an extension to scratch, it is an obvious choice to get the kids we are teaching to play with embedded programming.

I am running a robot build class in a few weeks time and was playing around with scratch and the control board (which is build around a Leonardo) with the intention of using S4A as the primary programming platform.

Once I had moved the timer to Timer1 instead of Timer2, I had most of the functionality working.

What I need to do, and have yet to accomplish, is move the pins controlling forward / reverse from pins 4 and 8 to pins 7 and 8 so that I don't have to modify the circuit if possible. I am using a Romeo V2.0 board from DF Robot and it would be great if I could get this working as an out of the box solution.

Any intelligent suggestions as to the best way to do this? Anyone else tried this?

Is there a good place to post the ported code for a Leonardo so that others can use it?


Cheers,

William

Víctor Casado

unread,
Oct 1, 2013, 11:16:11 AM10/1/13
to s4a-co...@googlegroups.com
Hi William!

First of all thanks for use S4A for your little class project. We didn't test it yet with a Leonardo board, but it's good to know that the timer was a problem and how to solve it, thanks for the input :)

So (please correct me if I'm wrong), as we can see on Romeo V2 pinout, pin 7 and 8 are for motor's direction control... do do you only need them as a digital outputs?

Regards,


2013/9/29 <wge...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "S4A Community Mail List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s4a-communit...@googlegroups.com.
To post to this group, send email to s4a-co...@googlegroups.com.
Visit this group at http://groups.google.com/group/s4a-community.
To view this discussion on the web visit https://groups.google.com/d/msgid/s4a-community/b3896396-89a5-424f-8cd5-99188f50f496%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Víctor Casado
Equip de recerca (Edutec)
vict...@citilab.eu

FUNDACIÓ PEL FOMENT DE LA
SOCIETAT DEL CONEIXEMENT
CORNELLÀ


Citilab Cornellà | http://citilab.eu | Pl. Can Suris s/n | 08940 Cornellà de Llobregat | Barcelona

thatp...@gmail.com

unread,
Dec 1, 2013, 7:30:39 AM12/1/13
to s4a-co...@googlegroups.com, wge...@gmail.com
On Sunday, September 29, 2013 6:38:08 PM UTC+9:30, wge...@gmail.com wrote:

> Is there a good place to post the ported code for a Leonardo so that others can use it?

Hi William,

Did you end up submitting your code anywhere?

Thanks,
pix

William Gebers

unread,
Dec 1, 2013, 8:12:12 AM12/1/13
to thatp...@gmail.com, s4a-co...@googlegroups.com
For anyone else interested, I have posted the code on bitbucket:


Apologies for the lack of comments.  I will try and fix that when I get a chance.

gsegura

unread,
Apr 21, 2014, 11:16:59 AM4/21/14
to s4a-co...@googlegroups.com, wge...@gmail.com
Hi William, I'm trying too use a Leonardo board with S4A too. I'm using your patch and now I can download the firmware without problem. But even so, I can't manage to get the board recognised by S4A.

Did you have any further problem with that? 

Where you using Windows?


Thanks in advance,

Gerardo

William Gebers

unread,
Apr 21, 2014, 7:32:53 PM4/21/14
to gsegura, s4a-co...@googlegroups.com
Hi Gerardo,

Getting S4A to recognize the board was a bit hit and miss, although I was on a Mac. 

I ultimately moved to blockduino instead, which works as a plugin to Arduino's programming environment. 


It's not quite the same, but suits my purposes. 

Cheers, 
--
Regards
 
William Gebers
+61 46 88 33 821

Francisco Andújar

unread,
May 6, 2014, 11:23:05 AM5/6/14
to s4a-co...@googlegroups.com, wge...@gmail.com
Hello, i am trying to upload the S4AFirmware15_Rev2.ino to a Leonardo clon. It compiles correctly, but when it is uploading, an error with the serial COM occurs, and it say that the serial COM is in use and it is not be able to upload de firmware.

somebody can help me?

Thanks.

Gerardo Segura

unread,
May 6, 2014, 1:46:25 PM5/6/14
to Francisco Andújar, s4a-co...@googlegroups.com, William Gebers
Hello Francisco, the problem you find is documented in Leonardo's official web page. The serial COM is in use by Leonardo itself and basically the solution they give you is to keep the reset pressed in the Leonardo until the computer tries to upload the program.

Here is the link.

I managed to do it. But the problem I couldn't`t solve is that S4A is not finding Leonardo, even if the firmware is uploaded.

If you make any progress, please let us know it.

good luck!


--
You received this message because you are subscribed to a topic in the Google Groups "S4A Community Mail List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/s4a-community/B3WgNvd9pHs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to s4a-communit...@googlegroups.com.

To post to this group, send email to s4a-co...@googlegroups.com.
Visit this group at http://groups.google.com/group/s4a-community.

William Gebers

unread,
May 7, 2014, 10:35:54 PM5/7/14
to Gerardo Segura, Francisco Andújar, s4a-co...@googlegroups.com
For my purposes, I have been using Ardublock with some success for the leonardo. 


Not quite S4A but it gets around the leonardo problems.

andrespro...@gmail.com

unread,
Aug 1, 2014, 4:49:42 PM8/1/14
to s4a-co...@googlegroups.com, wge...@gmail.com
HE COMPRADO UNAS PLACAS DE ARDUINO LEONARDO Y ME GUSTARIA SABER SI HAY FORMA DE QUE FUNCIONEN CO N S4A. ESTÁ EL FIRMWAre en algún sitio. Un saludo y gracias

Bernat Romagosa

unread,
Sep 1, 2014, 6:31:03 AM9/1/14
to s4a-co...@googlegroups.com
Hola,

El problema está en el firmware, hay algunos parámetros que deben cambiarse para poderlo cargar en la Leonardo. Si buscas en el grupo de la comunidad S4A encontrarás más de un tema en el que hablan de ello y descargarte una versión modificada, por ejemplo en éste: https://groups.google.com/d/topic/s4a-community/58z86nZiFjU/discussion

Saludos!


2014-08-01 22:49 GMT+02:00 <andrespro...@gmail.com>:
HE COMPRADO UNAS PLACAS DE ARDUINO LEONARDO Y ME GUSTARIA SABER SI HAY FORMA DE QUE FUNCIONEN CO N S4A. ESTÁ EL FIRMWAre en algún sitio. Un saludo y gracias

--

You received this message because you are subscribed to the Google Groups "S4A Community Mail List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s4a-communit...@googlegroups.com.

To post to this group, send email to s4a-co...@googlegroups.com.
Visit this group at http://groups.google.com/group/s4a-community.

For more options, visit https://groups.google.com/d/optout.



--
Bernat Romagosa
Equip de recerca (Edutec)
Reply all
Reply to author
Forward
0 new messages