Starter kit project 5 extension

Hi all!

A simple question for expert guys but a more complex issue for a real beginner like me..

I would like to extend the project no. 5 found in the starter kit book.
The goal is to add three LEDs (green, yellow and red) to the breadboard and light one of them when moving the Servo to a position ("Come in", "Knock please" & "Stay out")

Something like what I already did in the project no. 3. Anode to digital input and cathode to GND through a 220 Ohm resistor.

Do you think this can be a problem? The project no. 5 adds capacitors and this device is very new for me..

Sorry for this silly question..
Thanks a lot for your collaboration

Michele Mura
Pisa, Italy

michele_mura:
The goal is to add three LEDs (green, yellow and red) to the breadboard and light one of them when moving the Servo to a position ("Come in", "Knock please" & "Stay out")

Clarify - are the LEDs to be on while the servo is actually in motion to the target position or, will the LEDs be on only when the servo arrives at the commanded position?

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.

Can you post a picture of the layout for project 5 and the code that goes with it.

There are so many starter kits around we basically have no idea what your project is like.

Thanks.. Tom.. :slight_smile:

michele_mura:
I would like to extend the project no. 5 found in the starter kit book.

The problem here is the word "the".

The word "the" implies there is one specific thing. Albeit you have only one starter book, most of us here never had one but there are (presumably) quite a number in existence.

Please give a Web link for the (readable) version of the starter book you have. Seriously, it is your question so we should not have to go searching for all the information you yourself have to hand. :grinning:

You can add LEDs to each free Arduino pin. Set the pins to OUTPUT and turn the LEDs on and off as desired.

Take care that the total allowed current (~200mA) is not exceeded by the LEDs, that's all.

Hi all!

The book I mentioned in my first post is the one I found in the starter kit I bought from the official Arduino shop.

The project no. 5 contains a potentiometer which controls the angle of a Servo motor. Both are "under" a capacitor of 100uf.

The basic idea is to light a LED (put under a resistor of 220ohm connected to GND) right after invoking the method .write() of the Servo class. The best option is to have three different LEDs and choose which one light by processing the angle.

My concern was about the mix with resistors and capacitors.. I am a real rookie!

Thanks for all your answers and sorry if "broke" the forum rules.

mm

Hi,
Sorry but we cannot download that booklet.

Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.

Please post a picture of the relevant page(s) with the chapter concerned?
A picture is worth a thousand posts.

This is the list of contents for the Arduino Shop Starter, it may be out of date.

  • 01 GET TO KNOW YOUR TOOLS an introduction to the basics

  • 02 SPACESHIP INTERFACE design the control panel for your starship

  • 03 LOVE-O-METER measure how hot-blooded you are

  • 04 COLOR MIXING LAMP produce any color with a lamp that uses light as an input

  • 05 MOOD CUE clue people in to how you're doing

  • 06 LIGHT THEREMIN create a musical instrument you play by waving your hands

  • 07 KEYBOARD INSTRUMENT play music and make some noise with this keyboard

  • 08 DIGITAL HOURGLASS a light-up hourglass that can stop you from working too much

  • 09 MOTORIZED PINWHEEL a colored wheel that will make your head spin

  • 10 ZOETROPE create a mechanical animation you can play forward or reverse

  • 11 CRYSTAL BALL a mystical tour to answer all your tough questions

  • 12 KNOCK LOCK tap out the secret code to open the door

  • 13 TOUCHY-FEEL LAMP a lamp that responds to your touch

  • 14 TWEAK THE ARDUINO LOGO control your personal computer from your Arduino

  • 15 HACKING BUTTONS create a master control for all your devices!

Thanks.. Tom.. :slight_smile:

An here's the thing: Virtually all of the "old hands" here who answer questions, never had or even saw the book that came with the official Arduino "starter kit" - simply because we were not "beginners" and did not need a "starter kit "- we were here before Arduino. :grinning:

michele_mura:
My concern was about the mix with resistors and capacitors.. I am a real rookie!

The current limiting resistor is required for each LED, of course, no capacitor.

Hi, it is me again

Attached to this post you can find the picture of the "famous" project no. 5 with its schematic.

The two capacitor (100uf) are already there. May I add three LEDs connected to three pins via three 220ohm resistors?

Thanks again for your time

I know for sure that many of you were here before Arduino but my field of competence is software design and this stuff for me is still something like black magic... :slight_smile:
I only thought that Arduino starter kit was a good way for me to enter into this new world and I also thought the here in the Arduino forum the kit represented the first time for a lot of people.. Sorry again!

Why do you ask if you don't read the answers?

How to post an image


May I add three LEDs connected to three pins via three 220ohm resistors?

Yes, but it helps if you show on your schematic how you propose to connect them, that way we can be sure you are not doing anything wrong.

I only thought that Arduino starter kit was a good way for me to enter into this new world and I also thought the here in the Arduino forum the kit represented the first time for a lot of people.

An (not the) Arduino starter kit is a very good way to start if you are new to this stuff. Many, most, maybe even all of the people providing help here were not new to electronics or micro-controllers when they got involved with Arduino. I do have a starter kit as it happens, but only because a friend gave it to me. I have no idea what is in the accompanying book. My interest in electronics goes back to the age of about 5 or 6 when I built a 'lighthouse' with a large cardboard tube, a torch bulb and battery (or maybe my dad built it for me, I am not sure...)

Connect the resistors and LEDs as in project #3. In fact, it looks like the code for #3 could be adapted to your purpose here.

For those without -

arduino project 3.png

p.s. The 100µF capacitors in PerryBebbington's post are not 'above' the associated parts they are in parallel with them

arduino project 3.png

Hi everybody, it's me again...

I "succedeed" to extend the standard project and add LEDs which light upon different motor angles.
The picture attached shows the final result. All my concerns about the two capacitors (the one next to the potentiometer I think is optional) went away...

Thanks everybody for the patience and for the support.