Unstable on/off positions #1

Closed
opened 2019-01-02 22:11:02 +00:00 by PsychoMark · 4 comments
PsychoMark commented 2019-01-02 22:11:02 +00:00 (Migrated from git.x2software.net)

When the servo reaches the on or off position, it continues to wiggle quite a bit. I suspect the analogReads still aren't stable even with the delay after updating the position.

  1. Verify with debug mode enabled that this is the case
  2. Test with an external power source as well
  3. Check the analog signal on the scope
  4. Fix it!
When the servo reaches the on or off position, it continues to wiggle quite a bit. I suspect the analogReads still aren't stable even with the delay after updating the position. 1. Verify with debug mode enabled that this is the case 2. Test with an external power source as well 3. Check the analog signal on the scope 4. Fix it!
PsychoMark commented 2019-01-02 22:12:59 +00:00 (Migrated from git.x2software.net)

mentioned in issue #2

mentioned in issue #2
PsychoMark commented 2019-01-02 22:22:19 +00:00 (Migrated from git.x2software.net)
Maybe some filtering is a good idea as well: https://www.norwegiancreations.com/2015/10/tutorial-potentiometers-with-arduino-and-filtering/
PsychoMark commented 2019-01-03 18:28:16 +00:00 (Migrated from git.x2software.net)

There are definitely spikes in the 5V line when the servo moves, which makes sense. A 470 uF capacitor on the servo connection practically solves it, no need for software changes just yet.

There are definitely spikes in the 5V line when the servo moves, which makes sense. A 470 uF capacitor on the servo connection practically solves it, no need for software changes just yet.
PsychoMark commented 2019-01-03 22:16:49 +00:00 (Migrated from git.x2software.net)

closed via commit fa53deb9d0

closed via commit fa53deb9d086766c5b852e39d2ca397a34f147bf
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Electronics/RailroadSwitch#1
No description provided.