Questions tagged [programming]

The process of designing and writing source code as part of a program (or sketch) for Arduino. For questions about uploading code to an Arduino board, use the [uploading] tag instead.

Filter by
Sorted by
Tagged with
1
vote
2answers
38 views

Read Comma Separated String

I have a string that looks like this "10.00,20.00,-50.00," in which these are angle values and they have 2 decimals and can be negative. I want to separate them into 3 separate floats. Here ...
3
votes
2answers
38 views

Arduino Nano randomly resetting

I am currently struggling with an intermittent problem with an Arduino project. Background I am using a LabVIEW program to control a few pieces of hardware. One of them is a NEMA 17 stepper motor that ...
0
votes
0answers
31 views

How does one upload a synthesized solution to the Arduino Vidor FPGA?

I've compiled a solution and have received a ttf file from Intel Quartus which is designed for the Vidor 4000 Arduino board. The file represents a synthesized bitstream to be sent to the FPGA. How do ...
1
vote
3answers
100 views

How do i make my DC motors run simultaneously?

Im coding an adafruit motor shield for 3 DC motors to go forward & backwards, and so my concern is why only my motor3 is running the whole time and motors 1 & 2 are switching off meaning 1 ...
0
votes
1answer
22 views

Uno Wifi Rev2 Programming via Uno R3 ArduinoISP

I'm attempting to program Atmega4809 (Uno Wifi Rev2) via the ICSP pins on the board by connecting in this manner: The difference is that I have a Uno Wifi Rev2 on the right instead of a Uno R3. I've ...
3
votes
0answers
30 views

ESP32 3v3 logic needs to be stepped up to 5 V for the DRV8825 driver?

A stepper motor program successfully runs from an Arduino Uno. When I change to an ESP32 development board, the motors make little sounds and do not move. I troubleshooted, and all the voltages seem ...
3
votes
2answers
201 views

Form a signal from an array of bits

I need to reproduce with a digital pin of an Arduino such a key in the form of a sequence of 1's and 0's, where a one takes 2 ms high and 2 ms low, and a zero takes 1 ms high and 1 ms low. int key =...
0
votes
0answers
27 views

Set acceleration for stepper motor with no ending

I have a problem. I am using a stepper motor with 2 buttons. In my code I am trying to rotate the stepper motor clockwise while holding button1 and counter-clockwise while holding button2. To do that, ...
1
vote
2answers
38 views

(very new to C) I'm trying to use irsend with what I think is char* but it won't take it. How can I convert it to what it needs?

I'm attempting to use a raspberry pi to send ir codes directly to my arduino to have as simple as a C program as possible. Here's my code I've been tinkering with that leads to errors or not working ...
2
votes
1answer
37 views

TFMini Sensors with Arduino

I have three TFMini sensors I need all of them to detect. I only got one to work , pins 4,5 . My info in coding is basic . I really appreciate your help . Thanks in advance. I think the problem is ...
3
votes
1answer
32 views

Pass Color to a function without using a specific Adafruit_NeoPixel

I'm initializing my strips as an array: // Declare NeoPixel strip array: Adafruit_NeoPixel strip[] = { Adafruit_NeoPixel(LED_COUNT[0], LED_PIN[0], NEO_RGBW + NEO_KHZ800), Adafruit_NeoPixel(...
0
votes
1answer
16 views

Use Android on Arduino TFT

I don't know whether this is possible or not but is there any way that I can run something similar to Android on a normal TFT. I want to make complex graphics but can't program those complex programs ...
1
vote
0answers
28 views

How can I interface, received HC-12 data and transmit the received data using sx-1278 RF-module in arduino-UNO?

I am currently working on a project, where I need to send data from first unit to the second unit which is a few km apart, so I decided to go with hc-12 RF module as it covers upto 5km. Then the data ...
2
votes
3answers
50 views

Count specific range of output as 1 single output

The LDR sensor gives a range of values to show whether a LED is OFF/ON, let's say above LDR range 400, the led is ON. When a LED is ON, after reading the sensor values it shows above LDR range 800, ...
0
votes
0answers
28 views

combine the two sensors(DHT22 and Apds 9960 rgb gesture) code,, anyone help me? thankyou

i am making the prototype of my project using DHT22 and Apds 9960 RGB gesture with Ardunio, i dont know how to combine two sensor and at a time
1
vote
0answers
29 views

esp8266 sending to both webserver and myphpadmin

I have tried to send all the variables to both the webpage and to myphpadmin. I seperated the code into two functions and put the functions inside the void loop() function under the impression that it ...
0
votes
0answers
32 views

Alternatives to Nextion display

I am wanting to have a display where I can design the GUI on a program and then somehow transfer it to the display. For the graphics I want to make, it would be really hard to manually write the code. ...
1
vote
0answers
54 views

Programming multiple arduino at once

I actually made a prototype with multiplexing Chip select pin on Arduino, which connects to RESET pin of target board to program. When I am connecting one target board at once I am able to program it ...
1
vote
0answers
43 views

Help using uint32_t? Trying to feed arduino serial from raspberry pi. Any help is very very much appreciated

So I don't know C so I'm just trying to get some very very basic code running on my arduino to send it commands over serial. I'm feeding serial into buf irsend.sendNEC(0x210704FB, 32) this works but I ...
3
votes
2answers
56 views

'Servo_Pointer' was not declared in this scope

I can't seem to find the error I made; can anyone help me? The error message: 'Servo_Pointer' was not declared in this scope I get the error at the end of the code with the line: Servo_Pointer.write(...
0
votes
1answer
46 views

how can I stop my Arduino code after 1 second?

I want to send message NRF24L01 to NRF24L01. I want to see if I can send just one second. How can I stop code after 1 second?
0
votes
1answer
25 views

Use normal TFT Shield with SD as a Nextion Display

I have a normal Elegoo TFT 2.8" display shield that also had an SD reader. I am trying to use it as a Nextion display. I want to do this because the Nextion tool allows you to make very nice ...
0
votes
1answer
22 views

How can I use IRsend with a string or convert a char from serial to uint32_t?

I'm trying to control my arduino with a raspberry pi with python instead of C++ (which I don't know). I've found code to take a string from serial and print it, but instead I'd like to use IRsend to ...
0
votes
1answer
25 views

Estimate soc battery and discharge time using Arduino Uno

I am currently learning to do a project for estimating the soc of LiPo batteries with coulomb counting and calculating discharge time using Arduino Uno to display a warning when the battery runs out. ...
3
votes
2answers
225 views

How to use Multipile millis()

I've a exhaust fan that runs when the humidity is high. When the exhaust fan is on it should work for 3 minutes and should wait another 5 minutes to on. I am a beginner to this struggling for almost 2 ...
1
vote
0answers
36 views

Can someone check my schematic and code? My Led is not turning on

Led1 is on the left Led2 is on the right The code is making LED1 blink every second but it should also turn on Led2 so that whenever I press the push button it should turn off Led2. But Led2 isn't ...
-1
votes
0answers
36 views

LED isn't responding to Push Button

Led1 is on the left Led2 is on the right The code is making LED1 blink every second but it should also turn on Led2 so that whenever I press the push button it should turn off Led2. But Led2 isn't ...
0
votes
1answer
30 views

Streaming integer data from Arduino to Java, integer greater than 0xFF

I need to send how many milliseconds elapsed since the beginning of the time the arduino runs to java using Serial.write(). However, the largest integer that I can throw in there is 255, naturally ...
1
vote
1answer
32 views

How do I control a conveyor to start and stop in same location using optical rotary encoder

I am a complete novice at arduino. I just want to know if this is possible before I start investing in components. I need to start and stop a chain drive conveyor {can't slip} powered by a 12 volt ...
0
votes
3answers
62 views

Help a noob, no idea on Programming, only started 2 days ago Help please

As said no programming skills only started 2 days ago when Nano arrived. Heads in bits. This is how far i got. Any help much appreciated.. int EMagnetPin = 8; int solenoidPin = 9; int ReedPin = 13; ...
2
votes
0answers
52 views

Please help with my tinkercad code. Debouncing stopwatch with lcd

#include <LiquidCrystal.h> LiquidCrystal lcd(12, 11, 5, 4, 3, 2); int ssPin = 8; int resetPin = 9; bool cntrRunning = false; int sec = 0; int min = 0; double currentMillis; void setup() { ...
2
votes
0answers
27 views

loop once per startup for stepper motor

First of all sorry that i dont know much about programming, most of my codes are just copy paste. And of course, i know this question has been asked before, but while using this code: #include <...
2
votes
1answer
35 views

RS-485 Serial communication problem with arduino

I use 485 modules to transmit data serially from one arduino uno to another uno. If I connect the 2 arduino boards directly without using the rs485 module, the data is sent and received without a ...
1
vote
1answer
47 views

Bluetooth module(HC 05) issues

I am trying to make a Bluetooth controlled 4WD robot. i was following a tutorial i found online (https://howtomechatronics.com/tutorials/arduino/arduino-robot-car-wireless-control-using-hc-05-...
0
votes
0answers
36 views

Problem burning bootloader to ATMega32U4-MU (is the schematic correct?)

I designed a very simple 4*3 keypad system controlled by an ATMega32U4-MU MCU, using Adafruit's Itsy-bitsy 32U4 as reference (attached is the schematic of my circuit, while Adafruit's circuit can be ...
2
votes
2answers
59 views

Can the atmega328 return remainder during integer division?

When I write code like this: int a = 7 int b = 2 int c = a/b int r = a%b Does the chip use the remainder while calculating c or does it redo the entire calculation?
1
vote
0answers
22 views

How do I reset to servo position everytime I excecute a particular sequence

I'm trying to make a prosthetic hand that can play rock, paper, scissors with a human. It is based on the premise that you push a button and it randomly selects a move to play. After each move, I'd ...
1
vote
1answer
25 views

AMIS30543 | DataSheet Understanding CIRCULAR TRANSLATOR TABLE

I was reading the data sheet of AMIS-30543 stepper motor and I didn't understand fully what does this Circular Translator Table means, I have a couple of doubts What does Circular Translator table ...
1
vote
1answer
14 views

AMIS30543 | Data-Sheet understanding Status register

I was reading the data Sheet of AMIS-30543 stepper motor driver and I was not able to understand how to combine the result of the Micro step position status register MSP[8:0]. I know that its a 9 bit ...
3
votes
1answer
64 views

How to program Esp8266 remotly via wifi?

I hope it's not a sci-fi for arduino. But I saw that dual system with two MCU can program each other via radio connection. It has been done in experimental space cube projects. It is theoretically ...
1
vote
1answer
59 views

4WD Robot keeps freezing

I have been working on a 4WD robot for a while now. The parts I'm using are Arduino v4 shield, l298N driver motor, Hc 05 ultrasonic sensor, DHT 11, mq2, Bluetooth module, servo motor, ir transmitter ...
1
vote
0answers
108 views

Attiny85 problem [closed]

I am trying to make attiny84 4ch IR relay … in following code … #include <IRremote.h> int RECV_PIN = 0; int RELAY_PIN = 2; IRrecv irrecv(RECV_PIN); decode_results results; // Dumps out the ...
1
vote
1answer
32 views

Sequencing air pistons proble - Help please?

I am a beginner trying to activate 2 sets of 3 air pistons sequentially by going through the YouTube Tutorials... Help, please, pretty please?? :-) There are 3 sets of 2 pistons, each set working in ...
1
vote
0answers
28 views

Clocking issues while programming ATMEGA32U4-AU via USB bootloader

Hi, I'm designing a custom board with the ATMEGA32U4, with a GPS receiver and LoRa radio and it is powered from a LiPo battery. Since I'll need to make hundreds of this board later on, I'd like to ...
0
votes
0answers
42 views

I can't see any readings from my pulsesensor what can I do?

I have been using NodeMcu board for my project with a pulse sensor, DH11 sensor, and temperature sensor. Everything has worked well in spite of the pulse sensor. It doesn't show any readings that ...
1
vote
1answer
233 views

How do i improve this Code? (or how to pass a Char String into a Function to behave like a Variable)

Sorry i am a beginner and amateur when it comes to coding, can somebody help me to make the code inside the loop() less "monkey-like" by using a proper function? I have tried a lot and at ...
0
votes
0answers
31 views

Multiple functions at the same time with Arduino Uno

I would like to make a stepper motor run in for loop in time intervals. I also want to stepper motor run when I press the button. Two functions independently. One does not affect the other. I wrote ...
1
vote
2answers
55 views

Is it possible to send 2 or more o/p signal at the same time?

I wanted run two motors using Cytron MDD10A Dual Channel motor driver. So my concern is based on execution of code that is done line by line, in that case when I'm driving two motors will this delay ...
1
vote
1answer
70 views

Can Arduino UNO permanently store a code?

I'm really new to Arduino and wanted to know if I can make Arduino a permanent controller? and could you help me with a cheaper alternative? I also wanted to know about "fuse", i read it ...
1
vote
1answer
39 views

send configuration commands with arduino

I am using ublox zed F9P multi GNSS module. I have to program it for its configuration messages. Like I have to run a specific configuration of my receiver with the help of Arduino. I know arduino ...

1
2 3 4 5
31