cmd_analog_out_voltCommand to sent out analog signal to a connected Arduino boardCalling Sequence
cmd_analog_out_volt(h,pin_no)
Parametersh : Board number, reserved for future use. For this version, any number would dopin_no : Digital pin with ~ to sent the signalval : The value in volt (0-5) to be sent to the digital pins with ~ sign.Description
The analog outputs of the Arduino Uno is available at the pins 3,5,6,9,10 and 11, while on the Mega board, the outputs are on pins 1-13 and 44-46.
It is a bit misleading to use the term "analog output", because in order to generate this output while minimizing energy losses,
the Arduino uses PWM (Pulse Width Modulation) available on these ports. By varying the duty cycle of the PWM is altered the average
voltage across the component connected to this port, which has the effect of having a analog output voltage.
ExamplesSee alsocmd_analog_outcmd_arduino_a_controlAuthorsBruno JOFRET, Tan C.L.