Go Down

Topic: servo/ motor problems (Read 1 time) previous topic - next topic

timme

Hi,
i´m really really new to ardunio so im a complete newbie. Ich have an servo/motor this one : http://www1.conrad.de/scripts/wgate/zcop_b2c/~flNlc3Npb249UDkwV0dBVEU6Q19BR0FURTAyOjAwMDAuMDBmOS4yYjNkNjUxNiZ+aHR0cF9jb250ZW50X2NoYXJzZXQ9aXNvLTg4NTktMSZ+U3RhdGU9MzI0MTQ0OTYzNg==?~template=PCAT_AREA_S_BROWSE&mfhelp=&p_selected_area=%24ROOT&p_selected_area_fh=&perform_special_action=&glb_user_js=Y&shop=B2C&vgl_artikel_in_index=&product_show_id=&p_page_to_display=DirektSearch&~cookies=1&zhmmh_lfo=&zhmmh_area_kz=&s_haupt_kategorie=&p_searchstring=motor&p_searchstring_artnr=&p_search_category=alle&r3_matn=&insert_kz=&area_s_url=&brand=&amount=&new_item_quantity=&area_url=&direkt_aufriss_area=&p_countdown=&p_80=&p_80_category=&p_80_article=&p_next_template_after_login=&mindestbestellwert=&login=&password=&bpemail=&bpid=&url=&show_wk=&use_search=3&p_back_template=&template=&titel=&darsteller=&regisseur=&anbieter=&genre=&fsk=&jahr=&jahr2=&dvd_error=X&dvd_empty_error=X&dvd_year_error=&call_dvd=&kna_news=&p_status_scenario=&documentselector=&aktiv=&p_load_area=$ROOT&p_artikelbilder_mode=&p_sortopt=&page=&p_catalog_max_results=10

And i want it to work with the ardunioboard. So a friend told me that i need to put an resistor bevor the motor but i have no idear whisch one. So mybe someone can help me here.

Some info to the projekt ic have a little box with my arduino board in it an der is an "piezo" vor sond input. This Piezo gets "knockings" on the tables an switsch on 3 LED which are inside the box. Also if the knocking is frequent and louder the box should start moving .. so i need the servo/motor.

I hope my english is not that bad, so someone can help me here.
greets timme

brainfart

The link doesn't work.

You don't need a resistor to hook up a servo.
In this presentation you can find instructions for connecting a servo to your arduino:
http://todbot.com/blog/wp-content/uploads/2006/10/arduino_spooky_projects_class3.pdf (page 22 following)

http://todbot.com/blog/spookyarduino/  <---- have a look at all the class notes. Very good stuff for beginners!

timme

Hi,
thx for the links. I will check it.

Sorry that the link is broken in my post. So i will write here some technical detail.
Here is an PDF http://www.produktinfo.conrad.com/datenblaetter/225000-249999/244474-da-01-de-12V_Elektromotor.pdf
Hope this link will help.

her some tech info: (soory its german)
Nennspannung:               12 V/DC
Leerlauf-Drehzahl:       12600 U/min
Ø-Stromaufnahme:     0.29 A
Typ:                             2025-30
Gewicht:                   18 g
Last-Drehzahl:                 9400 U/min
Effizienz:                     40 %
Abgabeleistung:       1.5 W
Max. Drehmoment:     1.5 Nmm
Betriebsspannung:      3 - 15 V/DC
Leerlauf-Strom:        0.1 A

greets timme




Daniel

#3
Nov 04, 2006, 12:59 am Last Edit: Nov 04, 2006, 01:21 am by Daniel Reason: 1
Hi

the datasheet you linked to above is for a plain old DC motor, not an r/c servo motor. R/C Servo motors look like this: http://www.epanorama.net/documents/motor/rcservos.html

The motor you have will need a separate power supply as well as a motor driver circuit:

- here's a motor driver  from ITP, using an L293 H bridge, with Arduino code to boot: http://itp.nyu.edu/physcomp/Labs/DCMotorControl
- Here's something similar from HVWtech in Canada: http://www.hvwtech.com/products_view.asp?CatID=113&SubCatID=146&SubSubCatID=0&ProductID=30
- here's another controller from Parallax: http://www.parallax.com/detail.asp?product_id=29144

All of the above drivers give you the opportunity to change motor direction via software commands; if you only want it to run in one direction, you can just use a TIP41 or similar transistor or Mosfet...

The R/C stores also sell a "servo-style" moduel that is equivaluent to the ones above, but it's usually expensive.
You'll also need a separate power supply to run the motor: connect the ground of the 12V motor supply to the Arduino ground, and run the +!2 to the motor, whcih will be in series with the controller.

Or.. and perhaps this is simpler... you can just get an R/C servo motor!

D

timme

Hi,
oh thx - ok I have a small servo here. I will try to hack so that it will turn in one direktion.
Is there maybe a workaround?

greets timme

Daniel

What kind of servo is it?

D

brainfart

Serial Controlled Variable Speed Motor
Control the speed of a small DC motor with nothing but the serial port on your computer, a single MOSFET, and some trivial software.

http://www.instructables.com/id/E1PR6UUL0REUF10PO4/?ALLSTEPS

I'm sure this principle can be used with the Arduino, too.

ritzdank

or check this code (if you are running a servo!), escpecially for arduino:

http://www.tigoe.net/pcomp/code/archives/arduino/000741.shtml

ritzdank

well, i tried the code now with a servo motor, works good, except that the servo is flickering even when the analog value doesnt change. though, it makes some strange noises. tried it with a constant minPulse as well. then included the metro-library, cause i thought the delaymicroseconds might be not precise enough. nothing changed? should i put a capacitor between servo pin and ground? any advice?

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy