John40131
@john40131
Member
Joined: 2019-06-15 12:00 pm
Last seen: 2023-10-01 12:42 pm
Topics: 7 / Replies: 88
Reply
RE: Problem uploading sketch.

@zeferby I use One switch to switch 2 servos but they are on different channels on the PCA9685 i.e as I have a scissor crossing which has 4 points so ...

4 years ago
Forum
Reply
RE: Problem uploading sketch.

Hi david. Regarding SG90 servo's I just been testing my point motors and was finding 2 didnt work thought was it wiring was it my program but I tested...

4 years ago
Forum
Reply
RE: Problem uploading sketch.

I had a problem with a previous sketch when I used a voltage divider and inputs to A0 to A5 and when I switched 2 servo's at once went a bit crazy, I ...

4 years ago
Forum
Reply
RE: Problem uploading sketch.

I am the same but I am using 16 toggle switches of which 5 are for a 4 Way Crossing polarity Mega which as well as giving control 10 DPDT relays for F...

4 years ago
Forum
Reply
RE: Problem uploading sketch.

@dorsay Sorry cant help with servo problem ... yeh I think mine are SG90 not DC90 ... the small blue ones. I have also a big thanks to Eric has he hel...

4 years ago
Forum
Reply
RE: Problem uploading sketch.

If it helps this is the sketch I used on Servo's... its very long winded and im sure with using arrays etc could be made more tidy but it does work fo...

4 years ago
Forum
Reply
RE: Problem uploading sketch.

Yes the type I am using are DC90 which only have a turning circle of 180 deg, I have an Arduino Mega and a PCA9685 to give me 16 channels but then rea...

4 years ago
Forum
Reply
RE: An Arduino Uno, a PCA9685, servos and model railroad turnouts

Hi, I also went with Toms Trains sketch and modified to operate 16 sets of points on my Model Railway build.. John

4 years ago
Forum
Reply
RE: 4 Way Crossing Polarity

@zeferby Hi Eric ... Yes I will be ready at 14.00 hrs UK time ... just getting setup..all family out with Grandson today so its peace ... John

4 years ago
Reply
RE: 4 Way Crossing Polarity

@zeferby Its Okay Eric I will leave till Saturday, was just having a quick test and fault find, got a bit late know.. John

4 years ago
Reply
RE: 4 Way Crossing Polarity

@zeferby Hi Eric I was just a quick update which may help to fault find, When I run the program with Serial Monitor I can see that "Switch States" lin...

4 years ago
Reply
RE: 4 Way Crossing Polarity

@zeferby Hi Eric sorry I missed your posts, leave till Saturday for 2.00pm as all family going out so no distractions.. One thing you could look at wh...

4 years ago
Reply
RE: 4 Way Crossing Polarity

@zeferby Yes I have used pins 20 thro to 24 also has you have defined in lines 143 to 147 and as its a pullup I ground this pin, at the moment all swi...

4 years ago
Reply
RE: 4 Way Crossing Polarity

@zeferby Just a quick try before having dinner, uploaded as per pic, all trackswitch pins are HIGH, All frog polarities are HIGH but frog1A goes LOW e...

4 years ago
Reply
RE: 4 Way Crossing Polarity

@zeferby Yeh done, sorry I miss read your original message, was okay no errors, will have a try later as shopping this PM till about 4,00pm.. John

4 years ago
Page 3 / 7