Hi… new to forum…. ...
 
Notifications
Clear all

Hi… new to forum…. My name is Bob

4 Posts
3 Users
0 Likes
87 Views
(@bob55)
New Member
Joined: 2 months ago
Posts: 2
Topic starter  

I am a retired software developer looking to stay engaged in a field that kept me employed for 45 years. I have purchased a couple of ESP32 Dev boards and have enjoyed going through the samples provided on this site. My most recent one is using a SG90 servo however, the sweep, knob and pca9865 all produce servos that spin continuously. If modify parameters for myservo.attach I can make the servo go forward continuously, backward continuously or stop… but not move to a desired position. Doing an internet search I see this is not a unique issue and indeed my servos may be continuous ones. Perhaps there is another library that supports this kind. I would like to get some servos working in a 180 degree only mode. Does someone have a suggestion for the source for one that works as is supported by the examples provided?


   
Quote
Ron
 Ron
(@zander)
Illustrious Member
Joined: 2 years ago
Posts: 4454
 

@bob55 Hi Bob, welcome to the forum. I too am a long termer, first exposure 1959, Ferranti Packard analog computer.

I am unclear what you are looking for, is source the source code or a source of servos. For the later, searching amazon is a good place to start, then if that works for you and you need a quantity of them check out AliExpress. Servos have several important specs, first is the torque they can apply, and second is the angle. A google of '180 degree servos' got a hit on Amazon.com and it lists many pages. Good luck.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Inq
 Inq
(@inq)
Noble Member
Joined: 12 months ago
Posts: 1017
 

Posted by: @bob55

I am a retired software developer looking to stay engaged in a field that kept me employed for 45 years. I have purchased a couple of ESP32 Dev boards and have enjoyed going through the samples provided on this site. My most recent one is using a SG90 servo however, the sweep, knob and pca9865 all produce servos that spin continuously. If modify parameters for myservo.attach I can make the servo go forward continuously, backward continuously or stop… but not move to a desired position. Doing an internet search I see this is not a unique issue and indeed my servos may be continuous ones. Perhaps there is another library that supports this kind. I would like to get some servos working in a 180 degree only mode. Does someone have a suggestion for the source for one that works as is supported by the examples provided?

Welcome to the forum.

There are two kind of servos as you have already researched.  It is a function of the servo, not a library.  Servos that go to "a" position have a potentiometer in them... they can not physically go past the stop without breaking the gears/pot.  You'll need to get the correct kind of servos.  Actually, I'd like to get some like you have... those are not the norm.

I've bought two sets of these... mainly because they're dirt cheap and they include a lot of electronics as "bonus gifts".

$18 - "https://www.amazon.com/JOS-Walking-Helicopter-Airplane-Control/dp/B089GPC9NK"

 

 

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, Access Point Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
ReplyQuote
(@bob55)
New Member
Joined: 2 months ago
Posts: 2
Topic starter  

Thanks! I will find a way to do something with these units but will get some more standard ones as well.


   
ReplyQuote