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.

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 ...

6 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...

6 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...

6 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...

6 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...

6 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

6 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

6 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

6 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...

6 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...

6 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...

6 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...

6 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

6 years ago
Reply
RE: 4 Way Crossing Polarity

I commented out the #ifdefine CROSSING_NOHARD at line 43 but came with error on line 45 #endif if I comment that out no errors is that correct.. John

6 years ago
Reply
RE: 4 Way Crossing Polarity

@zeferby I'll watch that last video you posted, just a few things that I would like to clarify. I will change the SPST switches used on (trackswitch) ...

6 years ago
Page 3 / 6