Questions tagged [software]

Use this tag for questions relating to computer software used for interaction with the Arduino. For example, you could use this tag for questions about programming environments, or you could use it for PC/Arduino communication.

Filter by
Sorted by
Tagged with
1 vote
0 answers
29 views

Code not checking for updated sensor values after connecting to firebase?

I am using a project with an MQ138 sensor and want to push the real time sensor reads to firebase. Currently, the wifi/firebase part and sensor part work fine separately. The code connects to wifi and ...
  • 11
-1 votes
1 answer
121 views

Using Arduino to allow continuous servo to go in the opposite direction

For my project I am using 6 continuous servos connected to an Adafruit Servo Shield. To run them I use pwm.setPWM(0, 0, 1000) and then set a delay to run them for how long i’d like to, then run pwm....
  • 9
1 vote
0 answers
36 views

pH code of Arduino SEN0169 refuses to output

Good day everyone! I'm making my research project a hydroponics sensor that collects air and water temperature, humidity, conductivity, and pH, then sends it through a sim900a GSM module. However, ...
1 vote
1 answer
384 views

Dealing with noise in arduino interrupt

I'm makeing two modules, module2 gets sensor signal, and send wireless message to module1, with HC-12. Then module1 is going to do some work it is supposed to do. Circuit configuration is in the ...
1 vote
1 answer
152 views

Simple ModBus Master function 15

I have a simple setup with arduino Nano as slave and a arduino Mega as master Can anyone explain how the function 15 FORCE_MULTIPLE_COILS Works i have been running some test on this and cant figure ...
  • 55
1 vote
1 answer
108 views

Boolean Logic With Chars For Motor Input Selection

Context of the code: I am trying to control 2 DC motors through an H-gate, this means there are 4 inputs in total: For DC motor 1: Input 1 (VCC) and Input 2 (GND). For DC motor 2: Input 3(VCC) and ...
1 vote
2 answers
401 views

Hardware/software serial for HC-05

can anyone please tell me the whole difference between hardware and software serial for the HC-05. I read UART,USB cable, serial and I was like really confused so what is the difference and advantages ...
  • 43
1 vote
0 answers
61 views

Need debug Software that can be used with Arduino IDE

Background: I have made a standalone Arduino board using Atmega328PB. I have written code for a clock which lights LEDs based on the time. After a day or so it locks up. Sometimes it reboots. I ...
  • 41
0 votes
1 answer
71 views

Can someone help me decipher the code for the arduino? I am totally lost

The code is as follows: void loop(){ light = analogRead(5); Serial.println(light); analogWrite(3,light/4); }
user avatar
1 vote
1 answer
638 views

Random characters transmitted from ESP8266 to Arduino

Below is the code for getting a value from Firebase and sending the received data to arduino for performing necessary action. The code here here sends a string "o" to arduino once //uploaded to ...
1 vote
0 answers
30 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 ...
  • 11
0 votes
2 answers
81 views

How do software interfaces compare to hardware interfaces in therms of speed and reliability?

The Arduino core includes numerous software interfaces mimicking the hardware interfaces provided by the chip and even extending beyond. My question is, if in a project I can either use software or ...
  • 678
0 votes
2 answers
522 views

"expected primary-expression before '.' token" in debug code

I'm making some code for school, and is adding debug code to it. When compiling, I get the error as written in the title. This is the code in question: #define DEBUG 1 #ifdef DEBUG #define Serial....
0 votes
0 answers
67 views

Effective Controlling of Continous Servo Motor

I have difficulty in controlling a MG995 continuous motor. For I know I can control the speed of the motor as writing servo1.write(p) , where the value of p changes the speed of the motor. When the ...
1 vote
1 answer
819 views

Is it possible to transmit radio signal with cheap 433Mhz transmitter as strings and receive it with an RTL-SDR

I have these Arduino transmitters and receivers. They are very common. I am just trying to transmit a "Hello" Message using this code. #include <RH_ASK.h> #ifdef RH_HAVE_HARDWARE_SPI #include &...
  • 23
0 votes
1 answer
1k views

Software I2C - sending data

I'm trying to read a voltage in from a power supply to an Arduino Micro, then send it to an oscilloscope through an I2C (MCP4725). I would use the default pins on the Micro but I want to wire three ...
0 votes
2 answers
2k views

How to upgrade ESP8266 NodeMCU SDK from V2.5.2 to V3?

ESP.getFullVersion() output: SDK:2.2.1(cfd48f3)/Core:2.5.2=20502000/lwIP:STABLE-2_1_2_RELEASE/glue:1.1-7-g82abda3/BearSSL:a143020Connecting to DO_231455 I upload sketches from the Arduino IDE. How ...
-1 votes
1 answer
63 views

Changing the light state

Can someone give me a solution to the following problem? I have 1 IR remote, blynk app,some pushButtons and also 1 relay module. (I set 1 pin of ATMega as input to be able to read what esp sends when ...
1 vote
3 answers
2k views

How to automatically reset the NRF24L01 module

For my home-automation project I'm using several arduino nano's with each a NRF24L01+ module. Each module is able to both receive and transmit with one another. Everything seemed to be flawless for a ...
  • 11
1 vote
1 answer
860 views

Tinkercad but offline?

I have some issues with network and would like to work with arduino everywhere. I use Tinkercad which is great, but I would like to installit to my laptop and work without using WiFi. I couldn't find ...
0 votes
1 answer
650 views

Motor isnt spinning when using L298N motor controller

I have a L298 motor controller connected to a motor with a 6 volt power sources. the motor however isn't spinning any ideas I'm using a esp 8266 node mcu board. I would like to use pwm but for right ...
2 votes
1 answer
293 views

Adafruit Feather 32u4 BLE compatible with Software SPI?

Let me preface by saying that I am not super experienced with electronics. I have an Adafruit Feather 32u4 that is using Hardware SPI to communicate over Bluetooth. Unfortunately, I'm also hoping to ...
  • 21
0 votes
2 answers
308 views

Can't you easily use "quadrature" incremental rotary encoders at 2X or 4X their number of "stops"?

I bought a 12-step "quadrature" incremental rotary encoder as an input device for a project I'm working on. When I wrote the code to track "ticks" of rotation, I made it respond to any change in the ...
  • 5,572
-2 votes
1 answer
834 views

GPRS Based OTA to the NODEMCU

I need the OTA firmware update. I have the only option in my hand GSM(GPRS SIM800), with the help of this is it possible OTA, plz help me for this how I Do OTA via GPRS, FYI, I completed OTA Via WIFI.
0 votes
1 answer
41 views

Connecting Arduino and Processing, how do I know what COM to read?

I'm using Processing to read data from the serial port that the Arduino sends. When I go to device manager it shows that the Arduino is in COM 4, but in order for Processing to read from the Arduino ...
user avatar
-1 votes
1 answer
2k views

Pulse counter to measure flow-rate: 0 Pulse issues

I am using a Netafim M-Series flow meter interfaced with a UC-32 Arduino. The goal of this is to create a pulse counter than in turn will allow us to determine flow rate in the meter. (1 US gallon per ...
2 votes
1 answer
2k views

Printing transmission data from nRF24L01+

I have a beginner's problem. I have 2 nRF24L01+ devices. They are communicating with each other great, and I can talk with the nRF via SPI. The problem is I want to display, on the serial monitor, ...
1 vote
0 answers
501 views

Configuring Timers to Add One More 50kHz Square Wave

I am generating two 50kHz square waves, but I would like to generate three square waves. I have problems with generating the third square wave. Basically, I need to configure the timer bits so that I ...
1 vote
1 answer
767 views

Arduino Square Wave Phase Shift by 270 degrees

I am using this code to generate a square wave with Arduino and shift it by 90 and 180 degrees. However, this code is not able to shift it to 270 degrees. Could you please suggest how may I modify the ...
0 votes
1 answer
112 views

Coding Arduino's samples/period and cycles/sample configurations for input signal [closed]

Am I able to code the Arduino so that I can change cycles/sample of an input waveform and a number of samples/period configurations? I would like to modify these parameters in order to be able to ...
0 votes
0 answers
64 views

Can the "Arduino Create" chrome extension be used to program an arduino nano clone?

I was wondering if the Arduino Create app for the chrome browser can be used to program an atmega328 based arduino nano clone.(I need that app so that the arduino can be programmed using a chromebook)....
  • 103
1 vote
2 answers
4k views

Structure Array Initialization

I'm trying to initialize a char array which is part of a structure as follows: #define TRUE 1 #define FALSE 0 struct s_field_def { // structure for managing display field char f_txt[16]; // option ...
0 votes
1 answer
69 views

Arduino Uno and Arduino Yun software. Which version of the IDE works with both best?

I have been working with Unos and just started working with Yun. I have 1.86 currently installed but the Yun starts up saying to use 1.5.6-r2 Beta IDE. Should I uninstall 1.8.6 and install 1.5.6-r2? ...
-1 votes
1 answer
304 views

Setting a default arduino program in NodeMCU

Just after saying farewell to my old broken D1 mini I could not resist myself and bought a brand new nodemcu in the morning. I tried my previous arduino sketches to board and everything works fine, ...
2 votes
1 answer
356 views

Can I run arduino on Windows Embedded Compact 2013?

I'm actually working on a robotic project for which I'm planning to use arduino to drive the wheels.For this, I want to send signals from my Onboard embedded computer (which has Windows Embedded ...
5 votes
3 answers
7k views

Arduino UNO hangs without visible reason

I'm having trouble with Arduino UNO. I bought a cheap clone (what obviously may be the reason) along with display+keypad shield (site in Polish). For my project I wrote a menu library, which (along ...
  • 185
1 vote
1 answer
1k views

Can't get constant reading with load cells

I'm really a newcomer to arduino and I'm trying to build a scale with four SEN-10245 load cells and a HX711. My issue is that I can't get constant readings in the serial monitor and I'm not sure if my ...
  • 11
-3 votes
1 answer
335 views

Writing your own Arduino flashing tool [closed]

I want to make Arduino flashing tool only for a nano, a simple flashing application which could run on windows taking input as a .hex file. I know how to do this in Linux environment using Makefiles ...
  • 141
2 votes
2 answers
169 views

Is it possible to use Serial window for debug statements while using the hardware serial port for GPS module?

I am using the hardware serial ports of Atmega 328 to connect to a GPS module . A GSM SIM900 module is connected via Software serial . Is it possible to print the debug statements in the Serial window ...
  • 23
0 votes
2 answers
568 views

analogRead over a certain time

I would like to read an analog value using analogRead, save this value and compare it to an analogRead value 5 ms later. How would this code look? Because giving a variable the value of analogRead(A0);...
  • 1
1 vote
1 answer
57 views

Dynamically switching pin out

I have a connector with 10 pins, and a bus which uses 2 of the 10 pins. What I need to do is, in software, attach my arduino to 2 of the 10 pins. I cannot wire it directly as the 2 pins required may ...
1 vote
2 answers
1k views

WeMOS creating soft access point from old code even when new code doesn't have it

In the past I uploaded the code below: #include <ESP8266WiFi.h> #include <WiFiClient.h> #include <ESP8266WebServer.h> #include <DHT.h> #define DHTTYPE DHT22 // DHT 11 #...
0 votes
2 answers
648 views

Complex Arduino programs

Im working on a RGB LED matrix project (10 x 10 Neopixels) and I'm using classes to handle the different hardware components. Whats the best way to deal with multiple files in the project eg, I have a ...
  • 158
2 votes
1 answer
799 views

Arduino Robot won't move

I am building a robot for a school project. I use an Arduino Uno, 2 dc motor's and an Ultra Sonic range measurement module. I want the robot to be autonomous, he has to be able to move around on his ...
2 votes
1 answer
7k views

Use an Arduino to "intercept" transparently serial communication to Grbl?

I need to have an Arduino "spying" on communications between the PC and another Arduino with GRBL. The goal is to intercept a couple of GCode commands and act on them instead of Grbl. My first step ...
  • 175
2 votes
5 answers
5k views

Is there a way of turning a computer into a Arduino type board? [closed]

The Arduino's processing power is not sufficient for some of the tasks I would like it to perform... I'm thinking of making a Home Automation System and would like some serious processing power at ...
1 vote
3 answers
10k views

Problem with Software Serial: no response

I am using an Arduino Uno board with IDE 1.6.7. I have tried to implement a tweaked version of the basic example (SoftwareSerial example) from the Software Serial library. The code is attached. It ...
  • 11
2 votes
2 answers
2k views

Record a duration of time as data

I have very little experience with the Arduino and am hoping that you may provide me with some helpful info. I would like to build a device that records time spent on a project. I envision the main ...
  • 23
2 votes
3 answers
2k views

Take an Arduino or Teensy prototype to Mass production - Loading software onto microcontroller

I am developing an educational product that I would like to mass produce. I am not sure of the quantity yet, but I imagine we will make a few hundred PCBs at least to begin I spoke with an electrical ...
  • 219
0 votes
1 answer
2k views

Use ESP8266 as WiFi client connected to Arduino Pro Mini

So i'm trying to use the PubSubClient Library on my arduino mini pro, but I'm connecting to the internet via wifi using an ESP8266. Using a mini means I have to use software serial to connect to the ...
  • 153