Questions tagged [tinkercad]
33 questions
3
votes
1 answer
Unhelpful errors in Tinkercad writing Arduino c++ code
Sorry if some of my source looks really bad. This is my first attempt writing Arduino code as well as c++. I usually stay in my comfort zone of c#.
I'm getting the following errors when trying to run my source on a Tinkercad circuit. The way…

Arvo Bowen
- 4,524
- 6
- 51
- 109
2
votes
0 answers
Why is the button iset to high even when not pressing the button (Arduino Uno)
I am trying to make a random number generator that when a button is pressed will display a random number on a 16x2 LCD screen, but the button output always equals 1 even when the button is not being pressed.
Image of the setup not running:
Image of…

drammaone2tree
- 21
- 2
1
vote
1 answer
Why does Arduino require a void loop() even if it’s empty
Today i had my 10th, or 12th hour of Arduino in University, we were assigned a paper with only 2 parts, the questions and a picture of a TinkerCAD circuit, we had to wire this circuit, then wrote a code to light up the LED
TinkerCAD Circuit
i know…

Sebastian Domínguez
- 13
- 2
1
vote
1 answer
Entering a word in serial monitor
I want to print error in case the word that i entered in the serial monitor is different from 9 of lenght but it prints error all the time because the program itself doenst know when i´m entering a word.
// C++ code
//
void setup()
{
…

Matt
- 11
- 3
1
vote
0 answers
Why is my 7 segment display using CD4511 IC not working. Circuit Design attached
I want to count 0 to 9 by converting decimal to BCD in Arduino. Then sent it to CD4511 decoder which translates it to a seven-segment display. But it is not working. Please help. Photo of circuit and arduino code is attached.circuit design is as…

Uday Uppal
- 11
- 1
1
vote
1 answer
Confusing Labels for Function Generators and Oscilloscopes in Tinkercad
In Tinkercad, amplitude definition for Function Generators and scale definition for Oscilloscopes are quite confusing. Here is an ss from Tinkercad's function generator:
On the device 6.20 V is represented as peak-to-peak voltage, look at the…

Saba
- 77
- 1
- 11
1
vote
1 answer
LCD doesn't work in a simulated enviroment
I'm using Tinkercad, and since it's my first time programming an LCD I just copied the procedure to connect the pins and make it work.
The thing is that it just lights up without displaying anything, I tried both wiring and unwiring the R/W pin but…

Wandering
- 13
- 4
1
vote
1 answer
Receive the error 'setLocked' cannot be used as function, beginner and not really sure how to fix this error
I am a beginner when it comes to Arduino and tinkercad, I'm not really sure what the problem is here but I am trying to create a keypad and LCD lock. At first, it said that setlock was not declared in the scope but then I added 'boolean setLocked'…

ohmygodimpregnant
- 227
- 2
- 11
1
vote
1 answer
Motors With Arduino's
I have been working on getting some motors to work through H-bridges and managed to with this code.
// initialise motors
int enA = 3; // Motor 1
int in1 = 4;
int in2 = 2;
int enB = 5; // Motor 2
int in3 = 8;
int in4 = 7;
int enC = 11; // Motor…

Ben Robinson
- 19
- 6
0
votes
1 answer
Change color of blue outlines?
I am creating a model in TinkerCAD. I don't want to 3D print it, I just want to create images of the perspectives.
I created a design, but all edges have blue outlines. Here is a sample:
I would like the edges to be black. How do I do that?

Neil
- 153
- 1
- 9
0
votes
0 answers
Error 'In function 'void setup()': 13:1: error: a function-definition is not allowed here before '{' token'
This is my code
#include
IRrecv ir(10);
decode_results results;
void setup ()
{
for (int i=7 ; i<7,i++;)
{
pinMode(i,OUTPUT);
}
void loop()
{
if (ir.decode (&results))
{
if (result.value == 16593103)
…

Naiteek Saxena
- 1
- 1
0
votes
2 answers
Arduino Adafruit NeoPixel LED matrix is not working properly
I'm new to Arduino development, trying to display alphabets in an 8x8 LED matrix, but the simulation is not working
The code was working fine with one letter, what am I doing wrong in the below example?
How to debug code and is there any way to add…

SuRu
- 739
- 1
- 6
- 19
0
votes
1 answer
Arduino is giving a weird output when using toInt()
I'm trying to convert a string to an integer (which is actually a binary number) so that I can output the DEC value, but where the answer SHOULD be 63 (00111111), it's giving me -19961 as an output? It would be great if someone can help me correctly…

Stratidemic
- 3
- 2
0
votes
1 answer
"error: break statement not within loop or switch" in arduino one
i don´t have any idea of coding but i´m doing a school exersice and it gives me the error of the title
while (distancia<200 && distancia>100);
{
lcd.print("ALTO");
delay(1000);
lcd.clear();
delay(1000);
if(distancia<100)
{
break;
…

Alan Alanis
- 3
- 1
0
votes
2 answers
Trying to build a counter/stopwatch with arduino. is this wired correctly?
i am trying to make a stopwatch and counter project for arduino. Code aside, is this wired correctly?
The top button is to start the stopwatch, second is the button to start the counter (every press increases by one), and the bottom button should…

Mr. AwesomePants
- 41
- 2