Questions tagged [tinkercad]
33 questions
-2
votes
1 answer
I know that there is a small error in the code or circuit but I cannot find it
/*
This program controls the retractable spoiler.
*/
int brightness = 0;
int rainSensor;
int speedSensor;
int currentState;
#define INITIAL_STATE 0
#define ST_SPOILER_DOWN 1
#define ST_SPOILER_UP 2
#define IO_I_RAINSENSOR 3
#define…
-2
votes
1 answer
Using servo library in tinkercad causing weird behaviour
I am using analogWrite() in my code. Everything works fine when I am not using the servo library. In other words, everything is fine when I disable this line //servo_9.attach(9); If I enable this line, the PWM will be wrong and weird. Any idea why…

Mohamed Ibrahim
- 191
- 1
- 12
-2
votes
1 answer
Arduino, Run Time Code Error in Debouncing Voltage Time Delay Code
I am Ansh Goel, I was learning Arduino from Udemy. I am beginner to this field. I was creating a code for Debouncing the button to solve the issues of bouncing voltage. But there is error in the code. There is no Compile time error but it is run…

Goel Ansh
- 1
- 7