Stack Exchange Network

Stack Exchange network consists of 174 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 [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.

0
votes
1answer
17 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 ...
0
votes
1answer
49 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
1answer
134 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, ...
0
votes
0answers
45 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 ...
0
votes
0answers
138 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
1answer
25 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
0answers
40 views

Why do these 2 code pieces work differently?

I am trying to load 27 shift registers with 0 to clear them. This method works: digitalWrite (ssPin, LOW); for (x=0; x<27; x=x+1){ SPI.transfer(0); } digitalWrite (ssPin, HIGH); while this ...
0
votes
0answers
26 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)....
1
vote
2answers
535 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
1answer
41 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
1answer
139 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, ...
3
votes
1answer
123 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 ...
1
vote
1answer
10k views

Difference between Arduino and elegoo? [closed]

I know that Arduino uno and Elegoo uno use chips from the same manufacturarers, but still I was wondering if there's any difference between them in terms of software or similar. In school a professor ...
4
votes
3answers
2k 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 ...
0
votes
1answer
253 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 ...
-3
votes
1answer
70 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 ...
3
votes
2answers
72 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 ...
0
votes
2answers
143 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
vote
1answer
48 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 ...
0
votes
0answers
24 views

Attiny85 Timer 1 comparator B doesn't work properly (while A does) [duplicate]

I'm writing a simple program that is using Timer 1 comparator B to generate a square wave on DEBUG_PIN. The problem is that whenever I run the code, DEBUG_PIN state is always high. Here is the strange ...
1
vote
2answers
191 views

Attiny85 Timer 1 comparator B doesn't work properly (while A does)

I'm writing a simple program that is using Timer 1 comparator B to generate a square wave on DEBUG_PIN. So my code at first turns on timer 1 with prescaler 8192 so that one tick is approximately 1ms....
1
vote
2answers
475 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 #...
1
vote
2answers
180 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 ...
1
vote
1answer
237 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 ...
1
vote
3answers
146 views

What GUI software/platform can I use to control my Arduino MP3 player over the serial port? [closed]

How would I make a GUI program on a different platform to control my Arduino MP3 player using the Arduino's serial port. I would like the GUI program to show images like this for 'start': ...and ...
1
vote
1answer
2k 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 ...
1
vote
5answers
1k 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
3answers
2k 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 ...
1
vote
1answer
227 views

Possibility of installing custom firmware from Arduino Uno R3? [closed]

I've been messing around with installing keyboard firmware onto my Arduino UNO R3 (I used this tutorial) and had an interesting idea: would it be possible to have this install custom firmware, ...
1
vote
2answers
502 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 ...
2
votes
4answers
879 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 ...
0
votes
1answer
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 ...
2
votes
1answer
709 views

Updating the ARDuino code over GPRS

I've been searching a little for self-updating the ARDuino, and most i've come about is updating it using a wifi / lan shield. Now I have a GPRS shield that can connect it to the internet. Say that I ...
0
votes
1answer
397 views

Can't get software serial to work

So I have two Arduinos (Arduino Nano) and I'm trying to get them to communicate via SoftwareSerial. I have the 'sending' Arduino's D10 pin connected to the 'recieving' Arduino's D11 pin, and vice ...
0
votes
1answer
752 views

SoftwareSerial Write to return Read in Serial Monitor?

Hoping someone can help me out in my conundrum here... I currently am testing the SoftwareSerial library out to understand how I may use it in my project. I have a wire running from pin 6 to pin 9, ...
0
votes
1answer
202 views

arduino weather shield and wind speed

I have Arduino Mega and Weather Shield. I want to calculate wind speed. float get_wind_speed() { float deltaTime = millis() - lastWindCheck; //750ms deltaTime /= 1000.0; float windSpeed = (...
1
vote
3answers
33k views

Make a PC graphical interface for Arduino - Any easy software? [closed]

What's the best/easiest software to make a PC-Arduino interface? Ideally, I need to create a .exe that shows up a simple graphic interface, where the user can display data acquired from sensors ...
1
vote
2answers
80 views

What software is available for use with AVRISP and USBASP on ATMega48, 328, 2560?

What software is available for use with AVRISP and USBASP on ATMega328, 2560 for read/write fuse, flash and EEPROM for UNO, Pro Mini and Mega2560 board? (a fact question not opinion) Which software ...
0
votes
2answers
275 views

Measure LiPo / Li-Ion SOC or the ever standing question of how much juice is remaining in my battery?

So I have a project in which an arduino runs on a two cell LiPo battery and I need a fast, straight forward way to determine remaining battery charge (with an accuracy of 10% so I only have a readout ...
4
votes
2answers
736 views

Formula / calculation of the function random() / randomSeed()

In which file can I find the calculation that is called with random()? If it is not too much could you also post the content in your answer? I am using an Arduino Uno and its standard IDE. I found ...
18
votes
1answer
44k views

Reset an Arduino Uno in code

Is it possible to reset an Arduino (i.e., to reboot it) from code (i.e from the sketch itself)? I know that is possible with a special circuit but is there a chance to make it just with code? Below ...
7
votes
3answers
10k views

How to call C functions from Arduino sketch?

I would like to know if there is a way to call functions that are contained within C files using an Arduino sketch? My C file declares and defines a function. To save putting the messy function ...
6
votes
1answer
13k views

How to build (concat) a string with big numbers

new to arduino I'm struggling with what sounds like fairly n00b problem... I've wired up a adafruit GPS-board to my Arduino and it is working as it spits out GPS data to the serial port with Serial....
5
votes
1answer
3k views

How to use RS-232 sheild as software serial port?

I would like to be able to use a USB port at the same time as an RS-232 port with my Arduino Uno board. I unwittingly bought a shield that (I think?) overrides the USB port when it is mounted to the ...
13
votes
4answers
4k views

Programming options other than C++

Can I program my Arduino using any programming language other than C++? If so, which programming languages? What software would I need for compiling and loading my code onto the Arduino?
11
votes
2answers
967 views

Assembly on the Arduino: IO registers

Question: What registers do I use to access the IO on the Arduino Uno when I am using assembly for programming? Background: I was interested in practicing my assembly language skills on the Arduino (...