We’re rewarding the question askers & reputations are being recalculated! Read more.
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
7 Fixed list formatting, and added list formatting
source | link

Help needed - Arduino Uno Motor control using 2 Relays, 2 Limit switches and Bluetooth. Forward Reverse Stop

Modified existing project from this link: Problem : Trigger limit switch to stop DC motor https://arduino.stackexchange.com/questions/47731/problem-trigger-limit-switch-to-stop-dc-motor# Modified

I modified this code to control 2two relays which are wired to motor poles for Forward or Reverse movements until they physically reach a limit switch on either side.

Serial input of 'A' turns on one relay. If Limitswitch1 is pressed, this relay switches off. It detects the current state of the system and awaits the Serial input of 'B' which then turns on the second relay. If Limitswitch2 is pressed, this relay switches off.

  • Serial input of 'A' turns on one relay. If Limitswitch1 is pressed, this relay switches off.
  • It detects the current state of the system and awaits the Serial input of 'B' which then turns on the second relay. If Limitswitch2 is pressed, this relay switches off.

1. Please help with code - I require option where the 2 Relays switch off on the serial input of letter 'S' and to add the corresponding state machine. Essentially to add a Stop function.The issues are:

2. The limit switches work intermittently, sometimes they respond flawlessly, sometimes not at all. I have bought 3 different brands of switches to test but all have the same behaviour. I have pulled switches up and down with resistors in vain. I have performed button count test using code from this forum and confirm that the switch also behaves erratically. Can changes to code improve switch feedback?

  1. Please help with code - I require option where the two relays switch off on the serial input of letter 'S' and to add the corresponding state machine. Essentially to add a Stop function.

  2. The limit switches work intermittently, sometimes they respond flawlessly, sometimes not at all. I have bought three different brands of switches to test but all have the same behaviour. I have pulled switches up and down with resistors in vain. I have performed button count test using code from this forum and confirm that the switch also behaves erratically. Can changes to code improve switch feedback?

Help needed - Arduino Uno Motor control using 2 Relays, 2 Limit switches and Bluetooth. Forward Reverse Stop

Modified existing project from link: https://arduino.stackexchange.com/questions/47731/problem-trigger-limit-switch-to-stop-dc-motor# Modified this code to control 2 relays which are wired to motor poles for Forward or Reverse movements until they physically reach a limit switch on either side.

Serial input of 'A' turns on one relay. If Limitswitch1 is pressed, this relay switches off. It detects the current state of the system and awaits the Serial input of 'B' which then turns on the second relay. If Limitswitch2 is pressed, this relay switches off.

1. Please help with code - I require option where the 2 Relays switch off on the serial input of letter 'S' and to add the corresponding state machine. Essentially to add a Stop function.

2. The limit switches work intermittently, sometimes they respond flawlessly, sometimes not at all. I have bought 3 different brands of switches to test but all have the same behaviour. I have pulled switches up and down with resistors in vain. I have performed button count test using code from this forum and confirm that the switch also behaves erratically. Can changes to code improve switch feedback?

Arduino Uno Motor control using 2 Relays, 2 Limit switches and Bluetooth. Forward Reverse Stop

Modified existing project from this link: Problem : Trigger limit switch to stop DC motor

I modified this code to control two relays which are wired to motor poles for Forward or Reverse movements until they physically reach a limit switch on either side.

  • Serial input of 'A' turns on one relay. If Limitswitch1 is pressed, this relay switches off.
  • It detects the current state of the system and awaits the Serial input of 'B' which then turns on the second relay. If Limitswitch2 is pressed, this relay switches off.

The issues are:

  1. Please help with code - I require option where the two relays switch off on the serial input of letter 'S' and to add the corresponding state machine. Essentially to add a Stop function.

  2. The limit switches work intermittently, sometimes they respond flawlessly, sometimes not at all. I have bought three different brands of switches to test but all have the same behaviour. I have pulled switches up and down with resistors in vain. I have performed button count test using code from this forum and confirm that the switch also behaves erratically. Can changes to code improve switch feedback?

6 deleted 2 characters in body; edited title
source | link

Help needed - Arduino Uno with Motor control withusing 2 Relays, 2 Limit switches and Bluetooth. Forward Reverse Stop

Arduino Uno with Motor control with 2 Relays, 2 Limit switches and Bluetooth. Forward Reverse Stop

Help needed - Arduino Uno Motor control using 2 Relays, 2 Limit switches and Bluetooth. Forward Reverse Stop

5 added 210 characters in body
source | link

Good day I have very basic electronic and arduino knowledge. I have done some simple projects with code. This project is out of my depth but I am looking for some help for it to suit my requirement.

I have slightly amended anotherModified existing project withfrom link: https://arduino.stackexchange.com/questions/47731/problem-trigger-limit-switch-to-stop-dc-motor# Modified this code to test motor control with the2 relays which are wired to motor poles for Forward or Reverse movements until they physically reach a limit switch on either side.

Serial input of 'A' turns on one relay. If Limitswitch1 is pressed, this relay switches off.   It detects the current state of the system and awaits the Serial input of 'B' which then turns on the second relay. If Limitswitch2 is pressed, this relay switches off.

1. Please help with code - I require option where the 2 Relays switch off on the serial input of letter 'S' and to add the corresponding state machine. Essentially to add a Stop function.

Good day I have very basic electronic and arduino knowledge. I have done some simple projects with code. This project is out of my depth but I am looking for some help for it to suit my requirement.

I have slightly amended another project with link https://arduino.stackexchange.com/questions/47731/problem-trigger-limit-switch-to-stop-dc-motor# to test motor control with the limit switches.  

1. Please help with code - I require option where the 2 Relays switch off on the serial input of letter 'S' and to add the corresponding state machine.

Modified existing project from link: https://arduino.stackexchange.com/questions/47731/problem-trigger-limit-switch-to-stop-dc-motor# Modified this code to control 2 relays which are wired to motor poles for Forward or Reverse movements until they physically reach a limit switch on either side.

Serial input of 'A' turns on one relay. If Limitswitch1 is pressed, this relay switches off. It detects the current state of the system and awaits the Serial input of 'B' which then turns on the second relay. If Limitswitch2 is pressed, this relay switches off.

1. Please help with code - I require option where the 2 Relays switch off on the serial input of letter 'S' and to add the corresponding state machine. Essentially to add a Stop function.

4 deleted 84 characters in body
source | link
3 added 22 characters in body
source | link
2 added 116 characters in body
source | link
1
source | link