Questions tagged [arduino-ide]

This is for questions about the official IDE. The open-source IDE makes it easy to write code and upload it to any Arduino board. It runs on Windows, Mac OS X, and Linux.

Filter by
Sorted by
Tagged with
0
votes
0answers
17 views

Control Arduino through a website

I want to know is it possible to control an Arduino through a website. I have seen some tutorials that are doing it but it is in a local network. What i am trying to do is : - Arduino connected to ...
-1
votes
0answers
28 views

FSC-BT625 Bluetooth module (one Master - 10 Slave) with Arduino

I have a project that has #10 slave bluetooth modules. Each of them reads a value by adc and sends it to bluetooth master #. Please explain to me how this is possible. I read somewhere that this is ...
0
votes
1answer
44 views

Level shifting 5V <-> 3.3V

My main goal is to use connect the HC-SR04 ultrasonic sensor with ESP8266. Problem is, HC-SR04 works with 5V while the ESP8266 works with 3.3V In order to solve this, idea would be to use a logical ...
-3
votes
1answer
47 views

What is PWM actually? [closed]

tcommand=(pwm_value-480.0)/8.22; flapmag=(pwm_value-880)/41.0+10; In this piece of code used in arduino, I don't understand why PWM value is subtracted and divided like this. This is not my code. Any ...
0
votes
2answers
23 views

LSB/MSB and shiftOut

Here is the shiftOut function code from wiring_shift.c void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val) { uint8_t i; for (i = 0; i < 8; i++) { ...
0
votes
1answer
33 views

IDE finds multiple libraries

I don't understand Arudino IDE. Ever. This is a part of the compilation output: Alternatives for ArduinoJson.h: [ArduinoJson@6.14.0] ResolveLibrary(ArduinoJson.h) -> candidates: [ArduinoJson@6....
0
votes
1answer
17 views

How to declare a pointer for arduino neopixels library so I can set it up in the setup function with dynamic variables?

I am using NeoPixel strips, and I want to be able to declare a pointer to them, but not initialize them until the setup function (because they will initialize with certain variables only made ...
0
votes
1answer
41 views

Need my code to do multiple commands when inputs are pressed

Hello all I am back again with another issue concerning a code for my job. The code I have been working on is meant to connect to a IP server where some options are listed and I can control the servo ...
0
votes
0answers
34 views

Tcrt5000 activate button when sensor read any motion

EDITED: I have a module go tcrt5000 and I need that when it notice a object on front activates the left mouse button, could you lend me a hand and I pay it to you ?? I have the sensor code but it is ...
0
votes
2answers
58 views

Latest news about alternative Arduino IDEs

I simply hate the default Arduino "IDE". On Windows I use Visual Studio Code with the related plugin. Now I have a Ubuntu machine and I'm looking for the definitive IDE. Questions: I'm not sure ...
0
votes
0answers
22 views

Custom Board with ATSAMD21E17 with adafruit bootloader - can't flash

i build a custom board with an ATSAMD21E17D, similar to adafruit's Trinket M0, but with more used pins and different pinmux. I sucessfully burned the adafruit UF2 bootloader for that board using ...
0
votes
0answers
24 views

Help with tachometer programme

This is my first programme, which is to control a brushless ESC motor and an IR sensor to read the props' RPM. However I can't seem to figure out why it's not working. The reading keeps giving me 0, ...
0
votes
0answers
11 views

NodeMCU unable to communicate with MFRC522 RFID reader

I am creating a project that will read the RFID card or tag data, store that into a mysql database and display the data via PHP. I am using NodeMCU, RC522 RFID reader and Ardunio IDE to do that. ...
0
votes
0answers
28 views

Program giving one type of output in arduino ide stm32f1xx board version 2019.10.9 giving different output in board verison 2019.12.31

void setup() { Serial.begin(9600); Serial1.begin(9600); Serial1.println("HM 10 here"); Serial.println("STM32 here"); } void loop() { char inputdata; while (...
-1
votes
1answer
56 views

How to send data from PC to arduino?

How can I read data in Arduino IDE from a text file, if I have a text file which has the angle of arm at the different time intervals? If I want to read a text file from PC, can anyone please show the ...
-1
votes
2answers
37 views

Is it possible to get values only during vibration/movement from an Accelerometer(ADXL335/MPU6050)?

I'm trying to make a wearable motion sensor using ESP32 board and ADXL335 Accelerometer. Presently when I'm serial printing the output I'm getting the tilt value as well, which have different values ...
0
votes
1answer
96 views

How can I interrupt a delay() when a button is pressed?

I have created a device that allows my son to track time spent on activities and exchanges that time into a time he can use with his electronics (eTime). Full code in GITHUB I am having trouble ...
0
votes
1answer
28 views

make EEPROM.h use custom eeprom partition

I created the below partition table for an esp32 and replaced the 'default_8MB.csv' with it. # Name, Type, SubType, Offset, Size, Flags nvs, data, nvs, 0x9000, 0x5000, otadata, data, ...
0
votes
0answers
27 views

How to make VOLTE/LTE or LTE calls using Arduino?

I want to make VOLTE/LTE calls using Arduino. I searched everywhere in Google. At last I found a website LTE Cellular Shield for Arduino with Voice!. But I cannot find SIM7500 Shield in online shops. ...
0
votes
1answer
22 views

The problem of not saving the previous value when sending it from bluetooth

Controlling Led's from Buttons and Bluetooth by same method The problem now : the LED light up when you send an A over Bluetooth and it will turn off after 2 sec automatically without you doing ...
1
vote
1answer
44 views

convert c string to c++ string

My program is running on eps32, I'm retrieving some data from Bluetooth, and the Bluetooth string is a C string, I need to save that data in an RTC_DATA_ATTR String, which is a c++ string. just ...
0
votes
0answers
21 views

How can I upload an arduino sketch by using a bootable flash drive plugged in [duplicate]

The only reason as to why I am thinking about this is that I want to improve on the level of customization that an embedded product can have? so Here I am asking whether it would be possible to ...
0
votes
1answer
47 views

Use of progmem in ESP8266 vs AVR and also how to handle large dynamic strings

This is a somewhat tricky question dealing with implementation and best-practices of the ESP8266. I'd ideally hope that it's answered by people with in-depth knowledge on the problem. As you are ...
0
votes
0answers
26 views

How to tell if a config file was made with the current firmware?

I'm designing an application for the ESP8266 that stores certain information to a config file in SPIFFS. However, I'd like to store some information in a battery-backed NVRAM chip attached to it (to ...
0
votes
1answer
53 views

How to detect the direction of rotation with a sensor encoder timing disk (photoelectric speed sensor)?

I am making a DIY gaming steering wheel and am stuck. For measuring the rotation of the wheel, I'm using a sensor encoder timing disk, which is usually found in printers. - https://robu.in/product/...
0
votes
1answer
49 views

What would cause a delay when using serial between the Arduino IDE & external clients?

I have been working on a problem for a couple of days that I can't figure out. I am using a Teensy3.6 with Arduino IDE to build a CAN Bus monitor for a car. For those familiar, I am trying to save ...
0
votes
1answer
142 views

NodeMCU second HARDWARE serial TX as a debug port

I'm using a NodeMCU board to send commands to my home electricity switching box - using RS485 communication. For that, I've connected MAX485 TTL-to-RS485 converter module to my TX and RX pins. ...
-1
votes
2answers
50 views

Arduino IDE gives elf but does not give hex file

Arduino IDE give .elf file but does not generate .hex file. Show verbose output during: compilation is already selected. /Users/username/Library/Arduino15/packages/Seeeduino/tools/arm-none-eabi-gcc/...
0
votes
2answers
23 views

about receiving float on matlab from ATmega32 Avr

****i am using ATmega32 to send float and want to receive it on matlab,i send 4.85 from ATmega32 but on matlab i receive 4.260233679216239e-31...can any one help me..thanks in advance** ** //...
-1
votes
1answer
18 views

How do i Connect multiple sensors in one arduino. Which are namely a accelerometer, GPS, microphone and a GSM module [duplicate]

I am a noob in the Arduino world and have only started reading about it. I have zero experience with Arduino some suggestions to increase my level will also be highly appreciated. But I have a lot of ...
0
votes
0answers
148 views

Error compiling for board LOLIN(WEMOS) D1 R2 & mini

Receiving the following error message when compiling for D1 mini. This code worked previously but I am using a fresh install of Arduino IDE. I have installed ESP8266 boards using the board manager and ...
0
votes
0answers
46 views

ESP8266-01 Serial.print returns a blank given a valid string

I am currently trying to create a led matrix with ws2812b leds. I am using an uno on the rear of the display to control the leds and now I want to add wifi capabilities. Since I already had serial ...
0
votes
1answer
31 views

How to connect accelerometer, GPS, microphone and a GSM module to a Arduino? [closed]

I am a noob in the Arduino world and have only started reading about it. I have zero experience with Arduino some suggestions to increase my level will also be highly appreciated. But I have a lot of ...
0
votes
0answers
21 views

to define a object in your own arduino library which is already defined in inbuilt library

I am creating my own GPS library using NeoGPS library. So for fixing the GPS NeoGPS library defines gps_fix as: gps_fix fix; Now i want to define the same thing in my library. How to define the ...
0
votes
0answers
75 views

Digispark ATtiny 85 erases flash after power loss

I have some issues with my Digispark ATtiny85 board. If I upload the blink sketch for example the LED starts blinking and everything looks fine. But as soon as I unplug the Digispark from the USB ...
2
votes
1answer
53 views

Is it possible to split project into several folders?

It is possible to split the project into server files. However, it looks like they all must be in the same folder with the.ino file. Is it possible to split project into several folders? I’ve got ...
0
votes
0answers
35 views

ESP8266 Connection with WPA2-PEAP Enterprise Network

I am trying to connect my nodemcu 12E module to WPA2-entrprise network but not able to connect. I had gone through the Espressif Forum and GitHub but still not able to resolve my problem. here is ...
0
votes
0answers
39 views

To update GPS after every 30seconds using NeoGPS and NeoSWSerial Libray

I am using Adafruit Ulitimate Breakout GPS module and NeoGPS and NeoSWSerial Library. Now I want the GPS to update in 30seconds once (1time in 30seconds).After it is updated I want to check the ...
0
votes
0answers
63 views

MQ7.h: No such file or directory

Using ESP32 I'm making air pollution quality meter. For that I need MQ7.h library which is of version 1.0.4 MQUnified sensor library, which supports all sensors. I am using MQ7 carbon monoxide sensor....
0
votes
1answer
34 views

Locating a fault in writing a variable

I'm writing this piece of code for Arduino Uno, which takes in input on pin 2 the value of a PIR sensor. In order to debug, in this moment I'm taking the signal on pin 2 from the 5V power supply: int ...
1
vote
1answer
21 views

Comparing a text string to text output (DHT22)

Lately I've received a DHT22 sensor. I've started to create a small temperature and humidity monitor station. One of the things I noticed was if you pulled out the sensor while in use, it displayed "...
0
votes
0answers
24 views

Atmega328pb type casting errors

I've created a custom pcb with a Atmega328pb cpu. It's said to be binary compatible with Atmega32p, thus i flash it with my already functioning sketches that i've developed using an arduino. The ...
0
votes
0answers
20 views

Arduino not starting after 1.8.10 update

First off sorry if this is the wrong place. Yesterday I updated the Arduino IDE to 1.8.10 and I was able to program a couple of hours. Powering up my laptop today though the IDE is active, I can't ...
1
vote
1answer
78 views

Why does Arduino IDE take so long to open?

I have Arduino IDE, version 1.8.10 (Windows 10 x64, 8GB RAM, i5-7200 @2.5GHz) on a network drive mapped to D:, on a 100Mbit wired network and fast file server. If I navigate to the network shared ...
-1
votes
2answers
35 views

Multiple Loops to control on and off LEDs

I'm new here. I have tried to write a simple code to turn LED's and light them up in specific pattern and being able to switch it off while in loop. So far I've managed to either get them constantly ...
0
votes
0answers
20 views

Java exception - jmdns errors when using arduino command line [duplicate]

I see tons of similar issues with these error messages relating to the java exceptions for JMDNS... What is the cause of these exceptions? Issue is also seen here: https://github.com/arduino/Arduino/...
0
votes
0answers
17 views

Upload sketch in multiple arduinos

How do I upload sketches in multiple arduinos from one supervisor Arduino using UART , cd4051 for Rx and TX separately and reset pin low
1
vote
1answer
80 views

Using Serial.begin() twice

I'm training kids programming Arduino. We're gonna use Serial for debugging purposes, so we started with a simple HelloWorld program. I let them try various stuff, including changing the speed. Now, ...
0
votes
1answer
36 views

Sparkfun Pro-Micro stuck on uploading

I have read multiple posts on how to reset the sparkfun pro-micro when it gets stuck during upload, and this seems to work to get it back to a state where I can upload new code again - However, I am ...
0
votes
1answer
24 views

What is the correct folder structure for including local headers in my Arduino project?

I am designing a "project" with 5 Arduino's (each with separate codes), communicating with each other using NRF24. All the 5 codes are different except they share a common header "MyHeader.h". The ...