r/ArduinoHelp • • Aug 01 '21

LAFVIN arduino UNO smart car

2 Upvotes

So I got a LAFVIN smart car a while back and made the whole thing, I made it with a YouTube tutorial and the coding and stuff for the car where in the description. I wanted to open the file but I couldn’t in my country or region (the Netherlands) does anyone know a place where I can get the code for the LAFVIN smart car???


r/ArduinoHelp • • Jul 29 '21

I have no idea why my code is crashing.

2 Upvotes

I posted this on the sparkfun forums as well but they seem a little dead. The full code is posted there. I can post it here as well.

https://forum.sparkfun.com/viewtopic.php?f=104&t=56126

I am using QWIIC microSD card to record data from 4 sensors.

https://www.sparkfun.com/products/15164

State 0is idle and blinks the onboard LED
State 1 generates a file and filename. Ideally I would like it to name it according to String2 but that doesn't seem to be happening. no LED function because its only here for microseconds.
State 2 records until the switch is flipped. It also turns on the onboard LED so I know its recording.

I'm not sure if I should post my entire code and other states. With the quoted code below (state 1), it will do exactly what its suppose to and then stop. It won't go to state 2 (records sensor values below headers in state 1 in txt file). Onboard LED stays off. I think its stateless. If it's still in state 1, it's not looping because if I add a function to mess with the LED, nothing happens.

When I delete those string functions though, the entire program works exactly as intended (aside from being able to generate custom names for data files) and goes a to the next state and records data. Onboard LED turns on. The strings don't even factor into the filename yet.

What exactly do those functions do? Did I create some knid of strange loop with the string function.

myLog.begin();

String String1 = String(switchcount); // number of times switch is flipped

String String2 = String("test" + String1 + ".txt"); //custom file name

myLog.append("test.txt"); // Create file

myLog.println("Date, V1, V2, V3, V4");

myLog.syncFile();

Serial.println("Date, V1, V2, V3, V4");

Serial.println(1); // prints what state its in

state = 2;

break;


r/ArduinoHelp • • Jul 23 '21

Resetting an Uno

2 Upvotes

This may be a stupid noob question. Sorry. Can I reset or re-use an already programmed Uno? Will resetting it delete the sketch? Can I run a blank setup in IDE? Noob here. Sorry.


r/ArduinoHelp • • Jul 20 '21

Need help with limits on robotic arm

2 Upvotes

hey, so im designing a robotic arm atm, and am trying to find a good way to have limits for my actuators. They are going to be driven with cheap steppers and im trying to go for a cleaner look so i would like to avoid using limit switches. I was thinking of embedding cheap potentiometers that I got from amazon, however i would have to gear them since their range of motion is limited (270 degrees i think). Does anyone know if this is a good idea (bare in mine this isnt going to be super precise and desktop size). If not, id like to hear some other ideas. thanks


r/ArduinoHelp • • Jul 04 '21

Is it possible to use a relay as an input switch?

2 Upvotes

I have this issue where the serial monitor isn't reading the state of the switch properly, the monitor only works when my hand/finger is near the cable or touching. When my finger is close or touching the wire (that is being read using a digital read line) the tx light is flashing and doing all sorts. Has anyone had a similar issue before?


r/ArduinoHelp • • Jun 30 '21

Help needed with an Arduino drink machine

Post image
2 Upvotes

r/ArduinoHelp • • Jun 25 '21

Esp8266 stepper motor sketch

2 Upvotes

Hello everyone I'm having some issues I'm trying to do a simple project I want to turn a stepper motor continuously at a certain speed I used my mega 2560 board that came in my kit and got it doing exactly what I wanted but when I went to put that same sketch on the esp8266 board it does half a turn stops for a split second then repeats I changed everything that needed to be changed as far as I know like my pin numbers and stuff for the esp8266 board but it just wont continue to rotate like it did on the mega 2560 board I'm at my wits end and help would be great it is a 28byj-48 motor.


r/ArduinoHelp • • Jun 21 '21

Arduino nano help

2 Upvotes

Is it possible to output 12v (for an led strip) with an arduino nano that can only take an input of 3.3 volts. If so how


r/ArduinoHelp • • Jun 14 '21

Get 2 stepper motors running at the same time with different frequencies

2 Upvotes

Hello alll,

We are making an automatic wire stripper and cutter for a school project. We use an Arduino Mega, 2x shield and motor drivers and 2 stepper motors. Does anyone know how to control those 2 motors at different frequencies at the same time? You guys are our last help, no one else could help us.


r/ArduinoHelp • • Jun 10 '21

1 More Error Left

2 Upvotes

i followed the tips i was givin earlier today and i got rid of all but one error so here i am again.

Can't find any clear awnser anywhere only a head ache xd i just don't yet get the explanation i find on the net.

Hope that after this error is done my rig will work as i hoped. Thanks in advance.

error:

In function 'void loop()':

error: too many arguments to function 'long unsigned int millis()'

while (millis ( 5000 ) );

^

note: declared here

unsigned long millis(void);

^~~~~~

Compilation error: Error: 2 UNKNOWN: exit status 1

code:

int sensor = 13;
int led = 12;
int buzzer = 11;
void setup()
{
pinMode (13,INPUT);
pinMode (12,OUTPUT);
pinMode (11,OUTPUT);
{
digitalWrite (12, LOW);
digitalWrite (11, LOW);
digitalWrite (13, HIGH);
}
}
void loop()
{
{
while (millis ( 5000 ) );
digitalRead (sensor);
digitalWrite (12 ,HIGH);
digitalWrite (11 ,HIGH);
}
}


r/ArduinoHelp • • Jun 04 '20

Would this work too?

2 Upvotes

Hi, Following a tutorial online for facemask with led moving mouth on it...

Tutorial ask to buy this Wolfwhoop PW-D Control Buck Converter 6-24V to 5V 1.5A Step-Down Regulator but I'm in Holland and I can't find this around and it would take more than 2 weeks to ship.

I found this one and it seems to have the same specs excepts this one delivers 5V at 3A while the one in the tutorial delivers 5V at 1A .

I believe I have that higher amp is not an issue as the device will use what it needs only. But would somebody be kind enough to confirm?

Thanks!


r/ArduinoHelp • • Jun 03 '20

Virtual Press of a button

2 Upvotes

Hi, as part of my Arduino project I am attempting to simulate a physical push of the button with my Arduino. I want the diffuser to be started when a certain condition is met in my code (the diffuser usually starts when I push the button that I am trying to simulate). I will be able to figure out the code however I don't know what steps to take to convert the button on the diffuser (see images) to something I can virtually press with my code. I intend to use a transistor, as I have a few BC547 NPN Transistors lying around. The two wires I have soldered to part of the button when crossed will short and simulate the push of the button.

Images: https://imgur.com/a/kr0C7KL

Thanks for your help!


r/ArduinoHelp • • Jun 02 '20

Why won't the simplest pushbutton circuit work?

2 Upvotes

r/ArduinoHelp • • May 24 '20

WeMos Server Text Collection

2 Upvotes

I'm trying to collect text from a server. The idea is to have a textbox as well as a button and when the button is pressed, send the information within the textbox to be read by the arduino. I am able to display the text as an alert, but am unsure how to be able to read this from the WeMos board. If anyone has any ideas, or knows what the WeMos board is reading when it receives data from hyperlinks, please let me know. Thanks in advance


r/ArduinoHelp • • May 21 '20

Pushbutton hold for time

2 Upvotes

Hey, I'm trying to write a code that will activate a button and hold that button on for a predetermined amount of time, for example, when the button is pressed the action that this button would usually require to be held on for happens for a certain amount of time, say 30 seconds for example.

I hope this is a very simple task I just have almost no experience with Arduino and thought this would be a simple solution.


r/ArduinoHelp • • May 18 '20

I’m messing around with a tutorial on ultrasonic sensors. I used the library and code provided in the elegoo tutorial. Why am I getting this error?

Post image
2 Upvotes

r/ArduinoHelp • • May 18 '20

Coding Help

2 Upvotes

Hey all,

I am attempting to have a red LED turn off upon the press of a button. Also when the button is pressed a green LED lights up and a buzzer sounds. I have the red LED working as I had hoped, but the buzzer and green LED do not work when my button is pressed. My arduino knowledge starts and stops within a few weeks of a college class I took, so i am definently new still. I beleive i may have an issue with my sketch, which I have attached. If it is not beleived to be a coding error I can draw up my schematic. Hoping someone can lead me in the right direction.

Thanks for any feedback, this is my third attempt today at getting this to work. I am hungry to get this functioning.

*I have a pull up resister pulling my SensorValue to 5V, making buttonState =1

when the button is pressed, buttonState =0


r/ArduinoHelp • • May 09 '20

Pins not working

2 Upvotes

so i have been working on a project with 2 digital interrupts, one to count sensors pulses, and the other resets the counter. the uno bored has 2 ISR pins (2,3). and i need both for the program to work. i have previously burnt an Arduino pin 3 doing the same project but different sketch, i bough a new bored and restarted the project. last night i lost pin 3 again, i belive it might have been my fault as i changed a wire in my bredboard and i no longer have input or ouput on that pin. my question is

is there a was to test to know 100% my pins are not working and does anyone know if replacing the ATMEGA328u chip on the bored might solve this problem

id rather no buy a new Arduino as this one is only a week old. if i could buy a pack of ATMEGA ICs and just switch them out as i burn them (if i cant figure out why lol)

thanks


r/ArduinoHelp • • May 09 '20

I'm relatively new to arduino, and I'm trying to control two servos over Bluetooth based on mouse position. I'm using pyserial to send the mouse data to the serial port, then trying to read it with arduino. When I run both programs, the servos just jitter around. Is there a way to fix this?

Post image
2 Upvotes

r/ArduinoHelp • • May 08 '20

Please help a Beginner

2 Upvotes

So I am trying to control a diffuser as part of my Arduino project. I want the diffuser to be started when a certain condition is met in my code. I will be able to figure out the code however I don't know what steps to take to convert the button (see images) to something I can activate with my code. Each time 'SW2' is pressed it adds 30mins to the runtime I want to be able to control this from my code.

Thanks for any help! Images to some of the hardware for reference: https://imgur.com/a/SCcKz7q


r/ArduinoHelp • • May 06 '20

I’m trying to use an esp8266 to activate a relay board which will turn on my lamp when I ask my echo dot to turn on my lamp I have the circuit set up but I need help with the code

2 Upvotes

r/ArduinoHelp • • Apr 22 '20

Hooking cable from battery to breadboard

2 Upvotes

I have a LiPo battery and bought some connectors that supposedly can interface between the battery and a motor driver L298n (not breadboard as was in the title). Anyone knows if this is the correct cable/way to do it? When I tried this I saw a spark and immediately unplugged them


r/ArduinoHelp • • Apr 01 '20

DIY - Pendulum Clock Using Arduino

Thumbnail
youtube.com
2 Upvotes

r/ArduinoHelp • • Apr 01 '20

Can't get the PLX-DAQ to work. When connected, no data comes through. If serial monitor is open, the port is 'busy'

2 Upvotes

I don't get it. I can set it up and get the connection but only to the serial monitor OR the DAQ.

So, if I connect to the DAQ, I can see 'R' flashing red and green like it should - but no data is entered into the cells.

If I connect to the serial monitor, I cannot connect to the DAQ. I just get a 'busy' port warning.

What am I supposed to do? I just want to log some data.