How can assemble the core with servo motor!

I want to assemble my core with the servo from the kit,I tried and I failed !! :stuck_out_tongue: so can I get help !!!

I used this example by attaching the yellow wire to A0 pin !

hamed, you need to connect the RED servo lead to Vin on the Spark, and the BLACK servo lead to GND of the Spark. The yellow wire goes to pin A0 (up to A7 if you wish).

What program are you running to test the servo? :smile:

One other thing to watch out for is that only certain pins support servos–A0 should be fine.

attach()

Set up a servo on a particular pin. Note that, on the Spark Core, Servo can only be attached to pins with a timer (A0, A1, A4, A5, A6, A7, D0, and D1).

@Bdub did a great servo demo with Facebook likes over here:

Another servo example:

2 Likes