-->
Page 1 of 1

Sweep (servo) on ESP8266

PostPosted: Wed Sep 07, 2016 4:39 pm
by Nic Roche
Hi,

Using a 9g mini servo, if I follow the wiring diagram from the original Arduino schematic, it does not work.

Do I need a logic level converter on the signal for this to work? (some posts say the 3.3V is suffice).

How are these wired?

Thanks,
Nic

Re: Sweep (stepper) on ESP8266

PostPosted: Thu Sep 08, 2016 2:32 am
by schufti
I only know a 9g mini SERVO. As "sweep" is a term not usually used with steppers and steppers usually won't be directly connected to the µC, I assume you talk about servos.

Since my crystal ball is at maintainance at the moment, I can't see neither your setup nor your sketch.

I can, otoh, confirm that in general all servos that I tried did run directly on the esp w/o any level shifting, just by using the "servo" lib accompanying the esp8266 core.

Re: Sweep (stepper) on ESP8266

PostPosted: Thu Sep 08, 2016 5:00 am
by Nic Roche
Sorry I was looking at a few options; I corrected the stepper reference.

I used the servo example "Sweep":
https://github.com/esp8266/Arduino/blob ... /Sweep.ino

Wiring same as http://arduino.cc/en/Tutorial/Sweep substituting esp for arduino on GPIO2 (and 5V on servo).

I will try a different servo and ESP.

schufti wrote:I only know a 9g mini SERVO. As "sweep" is a term not usually used with steppers and steppers usually won't be directly connected to the µC, I assume you talk about servos.

Since my crystal ball is at maintainance at the moment, I can't see neither your setup nor your sketch.

I can, otoh, confirm that in general all servos that I tried did run directly on the esp w/o any level shifting, just by using the "servo" lib accompanying the esp8266 core.

Re: Sweep (servo) on ESP8266

PostPosted: Thu Sep 08, 2016 11:34 am
by schufti
I forgot: I powered the servo from 5V, connected it to esp via 1k resistor.