Skip to main content
added 1 character in body; edited title
Source Link
dda
  • 1.6k
  • 1
  • 12
  • 18

broken Broken serial connection corrupting arduinoArduino values

I have a problem with my homemade fan speed controller powered by a arduino nano, thatan Arduino Nano, which reads a value from Serial (arduinoArduino serial monitor,or processing or Processing sketch) &and uses the 0~2560~255 value to set a variable "fanspeed1"fanspeed1 to set a PWM pin to control the fan speed.

The problem is when I close the processingProcessing sketch, or the arduinoArduino serial monitor, the "fanspeed1"fanspeed1 is changed to max value  (the fan speeds up to full speed).

I would like to send serial to set the value and then close the serial monitor, or processingProcessing sketch and the "fanspeed1" value of fanspeed1 should not change.

If I need to post some code I can simplify my sketch down to a send serial,receive receive serial,make make pin pwm = serial( 0~2560~255), but I am guessing there is a simple solution to this unfindable with my googling.

Help please, these fans need controlling.........

broken serial connection corrupting arduino values

I have a problem with my homemade fan speed controller powered by a arduino nano, that, reads a value from Serial (arduino serial monitor,or processing sketch) & uses the 0~256 value to set a variable "fanspeed1" to set a PWM pin to control the fan speed.

The problem is when I close the processing sketch, or the arduino serial monitor, the "fanspeed1" is changed to max value(the fan speeds up to full speed).

I would like to send serial to set the value and then close the serial monitor, or processing sketch and the "fanspeed1" value not change.

If I need to post some code I can simplify my sketch down to a send serial,receive serial,make pin pwm = serial( 0~256), but I am guessing there is a simple solution to this unfindable with my googling.

Help please, these fans need controlling.........

Broken serial connection corrupting Arduino values

I have a problem with my homemade fan speed controller powered by an Arduino Nano, which reads a value from Serial (Arduino serial monitor, or Processing sketch) and uses the 0~255 value to set a variable fanspeed1 to set a PWM pin to control the fan speed.

The problem is when I close the Processing sketch, or the Arduino serial monitor, fanspeed1 is changed to max value  (the fan speeds up to full speed).

I would like to send serial to set the value and then close the serial monitor, or Processing sketch and the value of fanspeed1 should not change.

If I need to post some code I can simplify my sketch down to a send serial, receive serial, make pin pwm = serial(0~255), but I am guessing there is a simple solution to this unfindable with my googling.

Help please, these fans need controlling...

Bumped by Community user
Source Link

broken serial connection corrupting arduino values

I have a problem with my homemade fan speed controller powered by a arduino nano, that, reads a value from Serial (arduino serial monitor,or processing sketch) & uses the 0~256 value to set a variable "fanspeed1" to set a PWM pin to control the fan speed.

The problem is when I close the processing sketch, or the arduino serial monitor, the "fanspeed1" is changed to max value(the fan speeds up to full speed).

I would like to send serial to set the value and then close the serial monitor, or processing sketch and the "fanspeed1" value not change.

If I need to post some code I can simplify my sketch down to a send serial,receive serial,make pin pwm = serial( 0~256), but I am guessing there is a simple solution to this unfindable with my googling.

Help please, these fans need controlling.........