Notifications
Clear all

Problem uploading sketch.  

Page 7 / 7
  RSS

John40131
(@john40131)
Trusted Member
Joined: 12 months ago
Posts: 80
2020-05-09 11:34 am  

@zeferby

Hi Eric and Dorsay,

Hope everyone is safe and well, I am after a couple of months off Railway project trying to sort, know the last time I tried using my point servo sketch but after a while some of the DC90 servos seem to jam up and I was thinking its either because they are moving to fast or its because they are being kept live, and I know there is an Attach and Detach command that can be added to disable to servo's, and as the servo's are not under any tension so they cant spring back so this command would work fine.. but not sure how to add to sketch ..

Dorsay did you use the sketch that Eric posted and how did it work.

Regards John


ReplyQuote
ZeFerby
(@zeferby)
Reputable Member
Joined: 8 months ago
Posts: 368
2020-05-12 7:21 pm  

@john40131

Hi John !

Attach/Detach is for the basic Arduino Servo library, but don't apply to PCA9685 setups.  I'll look for a solution to have the PCA release a servo after setting it's position (but I'm not sure there's one...)

Eric


ReplyQuote
John40131
(@john40131)
Trusted Member
Joined: 12 months ago
Posts: 80
2020-05-13 11:20 am  
Posted by: @zeferby

@john40131

Hi John !

Attach/Detach is for the basic Arduino Servo library, but don't apply to PCA9685 setups.  I'll look for a solution to have the PCA release a servo after setting it's position (but I'm not sure there's one...)

Hi Eric hope you are well, I found this on Arduino forum but like you say maybe it wont work with the PCA9685 ... its just on my sketch I think the problem is the servo's are moving to fast and thats what may be causing problem so is the sketch you did for Dorsay can a step be created so servo just moves more slowly so say the move prom position from 270 to 390 takes say 2 or 3 seconds instead of approx 0.5 seconds

The link on the discussion is ... https://forum.arduino.cc/index.php?topic=42232.0

Regards John

 


ReplyQuote
John40131
(@john40131)
Trusted Member
Joined: 12 months ago
Posts: 80
2020-05-15 12:18 pm  

Hi Eric, some time ago you posted using the PCF8574 module and I was considering using this or the PCF8575 as a way of switching so I can get rid of the nasty minature toggle switches and use momentary minature push buttons for switching the points Arduino, if you you still have link would be gratful if you can re-post..

Regards John


ReplyQuote
Page 7 / 7