Who could help me with some simple Adruino programming?

17 views
Skip to first unread message

Robin Zwama

unread,
May 19, 2013, 10:24:42 PM5/19/13
to xinch...@googlegroups.com
Hi all!

Last wednesday I was at Xinchejian to see if I could find someone who'd like to help me with my project, so I subscribed and ended up here ;)

I'm an industrial design student from The Netherlands doing my final project at a design company here in Shanghai. In the last 4 months I've been developing a kids toy which responds to different actions (I can tell/show you more in detail later when we start it).

I have a little over two weeks left and as an extra I would really like to have a very simple prototype just for this balancing/jumping function, so I bought an Adruino pack and a compatible accelerometer. Now I've got no experience in programming and electronics at all, so that's why I'm asking for help here (cash/food/whatever reward + special thanks in my thesis report), I guess to you it most be pretty simple. Basically what I'd like it to do is:

1) Tilt it to the left: LED 1 flashes
2) Tilt it to the right: LED 3 flashes
3) Shake it (jump): LED 2 flashes

(Of course it would even be better to have a sequence memory game programmed, but I'd already be happy if it could only do these 3 things).

If one/some of you could help me out, it would be very very much appreciated, so thanks a lot in advance!

Cheers :)
Robin

单一帆

unread,
May 19, 2013, 10:56:15 PM5/19/13
to xinch...@googlegroups.com
you need a mag sensor and an Acceleration sensor for detecting tilt and shake situation.


2013/5/20 Robin Zwama <robin...@yahoo.com>
Robin

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

单一帆

unread,
May 19, 2013, 11:02:42 PM5/19/13
to xinch...@googlegroups.com
you need a mag sensor and an Acceleration sensor for detecting tilt and shake situation.


2013/5/20 Robin Zwama <robin...@yahoo.com>
Hi all!
Robin

--

Robin Zwama

unread,
May 19, 2013, 11:09:58 PM5/19/13
to xinch...@googlegroups.com
Hey thanks for your reply, I bought this 3-axis ADXL335 accelerometer (see image below) which is compatible with the Adruino. In a reply from Adruino support I was told that this could measure tilting and jumping/shaking.

I think I have all the needed components (Adruino pack with all the wires etc, Accelerometer, LED's)... The accelerometer can do the job, right?



单一帆

unread,
May 19, 2013, 11:24:49 PM5/19/13
to xinch...@googlegroups.com
yes, it can do the job.


2013/5/20 Robin Zwama <robin...@yahoo.com>

Robin Zwama

unread,
May 19, 2013, 11:27:34 PM5/19/13
to xinch...@googlegroups.com
Do you think you could help me program it?

nihaopaul

unread,
May 20, 2013, 12:37:47 AM5/20/13
to xinch...@googlegroups.com

I will be willing to give you 30 minutes on wednesday as long as you have your LEDs breadboarded and blinking one after the other with 500 milliseconds between them.

Paul

Robin Zwama

unread,
May 20, 2013, 3:40:36 AM5/20/13
to xinch...@googlegroups.com
OK thanks Paul, what time at Wednesday'd be good for you?

nihaopaul

unread,
May 20, 2013, 3:47:02 AM5/20/13
to xinch...@googlegroups.com

Say 530pm? If you don't have your blinken lights as described before make sure to tell me so I don't take off of work early for no reason.

Paul

Robin Zwama

unread,
May 20, 2013, 3:58:24 AM5/20/13
to xinch...@googlegroups.com
Sounds good, I'll let you know tomorrow if I got the LEDs blinking. (It's also OK for me if it's later in the evening if that works out better for you).

Paul Adams

unread,
May 20, 2013, 4:01:44 AM5/20/13
to xinch...@googlegroups.com
you've been on a wednesday before? it's better before the event.

On 5/20/13 3:58 PM, Robin Zwama wrote:
> Sounds good, I'll let you know tomorrow if I got the LEDs blinking.
> (It's also OK for me if it's later in the evening if that works out
> better for you).
>
>
>
> On Monday, May 20, 2013 3:47:02 PM UTC+8, nihaopaul wrote:
>
> Say 530pm? If you don't have your blinken lights as described before
> make sure to tell me so I don't take off of work early for no reason.
>
> Paul
>
> On May 20, 2013 3:40 PM, "Robin Zwama" <robin...@yahoo.com
> <javascript:>> wrote:
>
> OK thanks Paul, what time at Wednesday'd be good for you?
>
>
> On Monday, May 20, 2013 12:37:47 PM UTC+8, nihaopaul wrote:
>
> I will be willing to give you 30 minutes on wednesday as
> long as you have your LEDs breadboarded and blinking one
> after the other with 500 milliseconds between them.
>
> Paul
>
> On May 20, 2013 11:27 AM, "Robin Zwama" <robin...@yahoo.com>
> wrote:
>
> Do you think you could help me program it?
>
>
> On Monday, May 20, 2013 11:24:49 AM UTC+8, monosail wrote:
>
> yes, it can do the job.
>
> --
> You received this message because you are subscribed to
> the Google Groups "锟铰筹拷锟斤拷 Xinchejian" group.
> To unsubscribe from this group and stop receiving emails
> from it, send an email to xinchejian+...@__googlegroups.com.
> For more options, visit
> https://groups.google.com/__groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
> --
> You received this message because you are subscribed to the
> Google Groups "锟铰筹拷锟斤拷 Xinchejian" group.
> To unsubscribe from this group and stop receiving emails from
> it, send an email to xinchejian+...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/groups/opt_out
> <https://groups.google.com/groups/opt_out>.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "锟铰筹拷锟斤拷 Xinchejian" group.

Robin Zwama

unread,
May 21, 2013, 4:58:56 AM5/21/13
to xinch...@googlegroups.com
Yesss got it working :D

Just in case, is this the code you need as a starting point?

// SEQUENCE MEMORY TEST
// 3 LED LIGHTS FLASHING IN SEQEUNCE

int led1 = 10;
int led2 = 11;
int led3 = 12;

void setup() {
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);

}
void loop() {

digitalWrite(led1, HIGH);
delay(500);

digitalWrite(led1, LOW);
delay(500);

digitalWrite(led2, HIGH);
delay(500);

digitalWrite(led2, LOW);
delay(500);

digitalWrite(led3, HIGH);
delay(500);

digitalWrite(led3, LOW);
delay(500);

}

Paul Adams

unread,
May 21, 2013, 5:13:22 AM5/21/13
to xinch...@googlegroups.com
great, look forward to seeing it working tomorrow.

Paul
> xinchejian+...@__googlegroups.com <http://googlegroups.com>.
> > For more options, visit
> > https://groups.google.com/__groups/opt_out
> <https://groups.google.com/__groups/opt_out>

sun sunny

unread,
May 21, 2013, 9:48:38 AM5/21/13
to xinch...@googlegroups.com

aha i can help if you are busy at the time ~

> Groups "新车间 Xinchejian" group.

> To unsubscribe from this group and stop receiving emails from it, send
> an email to xinchejian+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
You received this message because you are subscribed to the Google Groups "新车间 Xinchejian" group.

Robin Zwama

unread,
May 22, 2013, 3:58:16 AM5/22/13
to xinch...@googlegroups.com
I'd appreciate that ^^

Robin Zwama

unread,
May 23, 2013, 1:02:32 AM5/23/13
to xinch...@googlegroups.com
Thanks again Paul for your help! 

nihaopaul

unread,
May 23, 2013, 1:05:28 AM5/23/13
to xinch...@googlegroups.com

No worries. So you are on for next Wednesday to present your piece?

Robin Zwama

unread,
May 26, 2013, 9:45:20 PM5/26/13
to xinch...@googlegroups.com
This Wednesday I can't make it, but how about the 5th of June, so next week?

nihaopaul

unread,
May 26, 2013, 9:48:26 PM5/26/13
to xinch...@googlegroups.com

5th of June we either have iot rob van kronenburg or Massimo from arduino not sure which Wednesday they have. So no to 5th. Sure you cannot make Wednesday?

Reply all
Reply to author
Forward
0 new messages