Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
38 views

Is there a module for Arduino that can be used to read movment? [on hold]

Does anyone know if there is a module for Arduino that can be used to read movment? How far has it gone and in which direction? I want to make a thing that the person will catch and walk, and i want ...
1
vote
4answers
19k views

Number of elements in an array char

What kind of function can I use to know how many elements are in an array char? sizeof() gives the number of 'spaces' available so it doesn't work for me.
0
votes
0answers
12 views

difference between v2 and v3 in terms of connecting with firebase [on hold]

v2 is perfectly working when sending data on firebase but it doesnot work when sending a data through v3. can anyone suggest me the valid difference between v2 and v3 which is responsible for sending ...
8
votes
9answers
7k views

Different ways (and the fastest) to compute sines (and cosines) in Arduino

I am using an Arduino Uno board to compute the angles of my system (robotic arm). The angles are actually 10 bit values (0 to 1023) from the ADC, using the full range of the ADC. I am only going to be ...
1
vote
0answers
18 views

Arduino based hour counter [duplicate]

I would like to make a hour counter for a particular machine.I have a problem in coding.arduino internal clock can work only till 49 days.my hour counter should calculate 150+ hours.I thought of using ...
0
votes
1answer
247 views

SIM800C, CPIN: NOT READY (ERROR CODE : +CME ERROR: 10)

I'm using a SIM800C module, and usually it works fine, but lately it has started giving the error "+CPIN: NOT READY" with ERROR CODE : +CME ERROR: 10(SIM NOT INSERTED). As soon as I get this message, ...
0
votes
2answers
39 views

Esp8266 Vin pin

I've read that Vin pin is directly connected to usb cable in esp8266 (which is 5V). I wonder if I can power a relay 5V and a servo motor Sg90 with this pin? And is there any danger of doing that ?
0
votes
1answer
142 views

'RtcDateTime' does not name a type

I've tested a code that compiles successfully. But after i merged it to another code, here it shown an error says RtcDateTime doesn't name a type. Used library : https://github.com/Makuna/Rtc Some ...
0
votes
0answers
25 views

How do I get makefiles for custom boards?

I want a makefile to compile a sketch without Arduino IDE. I found MakeFiles that is compatible for Arduino boards like the Uno, and atMega derivatives. Here I have a different one, STM32 development ...
0
votes
0answers
26 views

What is the Lifespan of NodeMCU 12-E? [on hold]

i am using the NodeMCU in a homeautomation project, how much does the NodeMCU last, and what about its efficiency? thanks in advance
0
votes
2answers
43 views

What is the best way to connect multiple Arduinos?

In my situation, I have a map divided into multiple parts, each part could have about 20 to 100 Arduinos that they should send information from time to time to the master. How could I do this? ...
0
votes
0answers
27 views

String.format(“%i”,i) equivalent

How do I format an arduino String when I do not want to print it? I know that one can use printf() or other methods to print a formated string and unfortunately that's all I find with google. But that'...
1
vote
2answers
3k views

Arduino software won't open in Mac OSX 10.10.1

I am having trouble opening the Arduino software on my mac, since I have updated Java to version 8 the Arduino software won't open. It does not give an error just closes instantly. I have tried ...
1
vote
1answer
25 views

Where can I find the source codes for the various classes and methods used in Arduino Primo?

I am new to Arduino development. I am trying to connect a BLE device (Arduino Primo) with my iOS app. From the Arduino BLE examples, I understand how to initialize the BLEperipheral class and then ...
0
votes
1answer
69 views

NodeMCU Ping working on one but not another

Update 2: Have tested by pinging various devices on different subnets / vlans and did a pcap on the wifi AP I can see the icmp requests going through for each request except for ones on the 4.x subnet,...
0
votes
0answers
17 views

Computer vision without internet connection? [closed]

I want to recognize a purple flower between green grass and to do this I will use computer vision. I read that most used methods is OpenCV but I have a problem. I will use this technique with a robot ...
0
votes
0answers
596 views

Port not showing on Arduino IDE 1.8.5 on MacBook Pro

The port is not showing up on Arduino IDE. I have tried using a compatible Arduino Uno and I'm now trying to connect an Adafruit Flora board. The serial port is just not showing up. Arduino compatible ...
0
votes
1answer
26 views

WS2812B only works while I measure the voltage

I'm going crazy, there is clearly something I'm missing here. I have a NodeMCU V3.0 and a 5V LED strip WS2812B with 10 diodes. I tested this first with a 5V 0.3A power supply, only powering 3 diodes, ...
0
votes
0answers
23 views

Error Compiling for board adafruit feather huzzah esp8266

I am very new the Arduino language and IDE I am trying to implement some test code around the wifi101. H library. When I do so, I don't get an error on a specific line of code but an overall error of ...
0
votes
0answers
12 views

NodeMCU with JHD162A LCD issue

I have uploaded a program to NodeMCU , to print "hello, world" on JHD162A 16x2 LCD module. But the text doesn't appear on the lcd display. Instead just black blocks appear on the first row on the LCD. ...
0
votes
1answer
40 views

Arduino IDE can't program my Arduino Pro Micro

I have a lot of Arduino Pro Micros that I can't program through the Arduino IDE. I'm on Windows. I'm using the SparkFun Pro Micro board information downloaded from SparkFun's website. I've tried ...
0
votes
1answer
33 views

Higher precision logarithms

I need to produce a log to base 10 with at least 4 decimal places. However, the log10 inbuilt function is giving the output with only two decimal places. What do I do? Is there a different function or ...
0
votes
0answers
14 views

Installed configuration won't show up on Board menu

So I was following these instructions on the official site. Download this hardware configuration archive: breadboard-1-6-x.zip, Breadboard1-5-x.zip or Breadboard1-0-x.zip depending on which IDE you ...
-1
votes
1answer
32 views

How should I combine the codes for two sensors in 1 Arduino sketch?

Name of study: AUTOMATIC ELECTRIC FAN We used an ultrasonic sensor for the switching on/off of our Fan and an LM35 SENSOR to control the speed regulation. During our experiment, we use a LED instead ...
1
vote
1answer
46 views

Hold button / press button/ push button

I want to control a servo motor in a way that if you push the button, you can control it by potentiometer a if you push double time, you can control servo with infrared if you hold button step ...
2
votes
3answers
23k views

error: espcomm_upload_mem failed when uploading a sketch

I am new to the whole arduino scene. I have connected my wifi module (esp8266 v01) to my arduino Uno like this: http://www.teomaragakis.com/hardware/electronics/how-to-connect-an-esp8266-to-an-...
1
vote
1answer
56 views

How to get the weather kit with anemometer working using arduino (UNO)?

I tried to build a weather station with anemometer and My setup is, SwitchDoc Labs' anemometer kit (which is equivalent to sparkfun anemometer kit) connected to the grove weather-pi board with rtc ...
1
vote
1answer
113 views

Length of uint8_t* const array

I've an array of type uint8_t* const with 6 items, defined like this uint8_t* const neighbourSet[] = {PEER1, PEER2, PEER3, PEER4, PEER5, PEER6}; Whereas each element in this array is static uint8_t ...
1
vote
2answers
4k views

STM8 Development Board with Arduino IDE

I got one of these cheap STM8 boards from China and was hoping to find a way to use this with arduino code. Does anyone know of an arduino boot loader and board package that works with them ?
3
votes
1answer
383 views

Adding a custom board to the Arduino IDE

I would like to know what is the procedure for adding a custom board to the Arduino IDE? My custom board is similar to the Arduino Zero. Instead of using the ATSAMD21G18, my board is based around the ...
0
votes
2answers
4k views

Can a ESP8266 and a HC-SR04 be friends?

I have some existing code that I've been using with an Uno and a HC-SR04. In order to make my project less expensive, I'm trying to port everything over to a ESP8266-01. The last hang up I've been ...
0
votes
0answers
51 views

Why is this Code not working with Esp8266 when it worked perfectly with Arduino Uno?

I'm making an attendance System using an RFID scanner, scanning RFID Card & saving Data in Excel. When I used this code with Arduino Uno (by changing #define SS_PIN 12 and#define RST_PIN 9) it ...
0
votes
0answers
24 views

Uploading code to custom SAMD20G15B board through Atmel ICEand Arduino IDE [duplicate]

This is my setup: SAMD21G15B with no external crystal (Addon possible with Epson MC-146 32.768Khz ) SWD connector I'm trying to upload code with the Arduino IDE via the Atmel ICE. But when I choose ...
0
votes
0answers
18 views

Arduino libraries development and Eclipse Soleber

I have a project on Arduino IDE. A .ino sketch with some extra .h/.cpp files and 2-3 libraries that I keep in ~/Arduino/libraries. In addition to the IDE I do open the libraries as generic project in ...
0
votes
0answers
38 views

Understanding flashing with bash in Ubuntu

I am following the instruction from this DIY tutorial to set up the firmware for my dust sensor on Arduino board (NodeMCU): https://luftdaten.info/en/construction-manual/#feinstaubsensor-konfiguration ...
2
votes
1answer
623 views

Vcc measurement with internal 1.1V reference fails on 3.3V powered Atmega328

I need to monitor a battery plugged to an ATmega running on standalone mode. I use the "ATmega on a breadboard (8 MHz internal clock)" bootloader. More info here When the ATmega is powered with 5V ...
0
votes
0answers
35 views

ATMega328 AU bootloader burning issue using Nano

We are trying to burn bootloader into ATMega328P-AU SMD. We have taken the reference of the link and did the same. We checked wire connections and all looks fine and we tried with two chip with two ...
0
votes
0answers
39 views

Control Fan Speed Using ESP8266

Hello i am using ESP8266 to control my 220v AC ceiling fan. I am able to do that easily with a 5v 10A relay module. But i want to know is there any module to control the fan speed as well? i have ...
0
votes
0answers
69 views

Can I use ESP8266 and OV7670 to video stream on a web?

OV7670 image sensor, small volume, low operating voltage, providing all functions of a single chip of VGA camera and image processor. so I am using and ESP8266 to connect to internet and stream the ...
0
votes
3answers
8k views

Cannot upload sketch to Arduino Nano

I've been using Arduino UNO for quite sometime and brought a new Arduino Nano. When I connected it to my computer, the power usb lit up and the blink sketch started running ( as expected of course). ...
0
votes
1answer
47 views

Having really weird experience with string concat

Having really bad day with concat. I'm not quite sure where i did wrong.. Have a look at my function below. void sim900aSendHttp(String bid, String lati, String longi) {  Serial.println("BUSID:"+bid+...
0
votes
2answers
43 views

I cannot compile the Arduino sketch when I remove the void loop function?

#include <AFMotor.h>  AF_DCMotor motor(2,MOTOR12_64KHZ); void movefor (); void moveback(); void setup() { Serial.begin(9600); Serial.println("Motor test!");` `motor....
0
votes
1answer
41 views

Arduino IDE + ESP32 Webserver - how to redirect to root after click on button

I'm trying to use ESP32 + Arduino IDE to control a relay. I've started by using the library and the code below. The problem I'm having: after clicking on the button and activating the pin, if the ...
0
votes
1answer
1k views

: Failed to open /dev/ttyACM0 (port busy)

I am trying to work with the (new) sparkfun razor IMU 9dof, I wrote a silple sktetch to calibrate the magnetometer: #include <SparkFunMPU9250-DMP.h> // Include SparkFun MPU-9250-DMP library #...
0
votes
0answers
78 views

Arduino master/slave communication using RS485

I am using Arduino Uno as a Master Device and 3 Arduino Unos as slave devices. I am sending data from each slave to master after every 3 seconds continuously, and is going to execute further logic ...
-1
votes
1answer
49 views

NodeMCU display temperature and control LED from an autorefresh web page

I'm totaly new to Arduino, I'm using ESP2866 NodeMCU and dht22 to display temperature and humidity in a web page, it is autorefresh (using AJAX) and it works perfectly, I wanted to add 2 buttons to it ...
0
votes
1answer
32 views

My arduino IDE not uploading

pls,i am not able to set programmer as ,board model is not known to me,name is not mentioned on board but written as '"basic AVR develooment board.and in device manager .Silicon Labs CP210x USB to ...
0
votes
0answers
20 views

Do I have to use Arduino IRRemote libraries?

I have seen some tutorials to build your own IR Remote. But all of them use a library that contains the IR code. The question is, could I just skip, injecting a library and make the Arduino output a ...
4
votes
5answers
5k views

Arduino IDE Permision Denied For Upload, Ubuntu

I am having issues uploading to my Arduino from the IDE on Ubuntu 18.04. The error message I have received is: Arduino: 1.6.10 (Linux), Board: "Arduino/Genuino Uno" avrdude: ser_open(): can't ...
0
votes
0answers
35 views

Serial Port not recognized by Arduino IDE

I’m attempting to connect with a Adafruit Huzzah Feather ESP8266 board. I’m running a 2018 mbp with Mojave. I loaded the Silabs driver (CP210) to connect with the onboard UART on Huzzah board. I got ...