Hi!, I am wondering if is possible to generate a random signal with arduino?
I have Arduino nano 328p
Thank you.
Hi!, I am wondering if is possible to generate a random signal with arduino?
I have Arduino nano 328p
Thank you.
You can generate a pseudo-random number, but not sure what you mean by signal here.
You are designing PID Motor controller, here are some links for that
DC motor control with PID
Motor Control with Arduino
PID CONTROLLER USING ARDUINO
But why you need random signal for PID to be generate?
I'm impressed Bill. How did you deduce this:
BillHo:
You are designing PID Motor controller
.... from this?
Leofrank:
I am wondering if is possible to generate a random signal with arduino?
Hi, why random signal? I don't know exactly, i want the motor turns in several speeds, sometimes slow sometimes quick, so i suppose that will be fine but I don't know. If you have some experienc or information to share, i'll be very grateful, i am very new in every thing.
Thank you for reply my question.
Assuming your motor controller accepts speeds in the range of 0-255,
motor_speed = random(0,256);
set__motor_speed(motor_speed);