Arduino Stack Exchange
736 FOLLOWERS
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino.
Arduino Stack Exchange
20h ago
I'm currently working on a project that involves two stations: a transmitter and a receiver. Please keep in mind that I'm a beginner.
On the transmitter side, I'm using an ESP32, HC-12 433MHz module, GPS NEO-6M module, BME280 sensor, and a microSD card reader. The goal is to send data from the GPS and BME280 to the receiver twice a second and output it to the serial monitor.
I managed to create code for both stations that works as intended, but there are a few issues bothering me. Firstly, I haven't been able to figure out how to properly set the delay so that it sends the data twice a second ..read more
Arduino Stack Exchange
20h ago
I am using PICSimLab to simulate a keypad. The configuration of the keypad is as shown in the picture:
and the code is:
#include <LiquidCrystal.h>
#include <Key.h>
#include <Keypad.h>
const byte rows = 4; // 4 rows
const byte columns = 3; // 3 columns
char keys[rows][columns] = {
{'1','2','3'},
{'4','5','6'},
{'7','8','9'},
{'*','0','#'}
}; // keymap
byte rowPins[rows] = {3, 2, 1, 0};
byte columnPins[columns] = {6, 5, 4}; // set up connection pins
Keypad kp = Keypad(makeKeymap(keys), rowPins, columnPins, rows, columns); // set up keypad
const int d4 = 7, d5 = 8 ..read more
Arduino Stack Exchange
20h ago
I am trying to store accounts into External EEPROM. The struct has 200 bytes but i have read that you can only store 32 bytes at one time. So how do I store a structure of 200 bytes. Is there a library to do so?
#define MAX_NAME_LENGTH 32
#define MAX_EMAIL_LENGTH 64
#define MAX_USERNAME_LENGTH 32
#define MAX_PASSWORD_LENGTH 32
#define MAX_WEBSITE_LENGTH 64
#define MAX_ACCOUNTS 100
struct Account {
char name[MAX_NAME_LENGTH];
char email[MAX_EMAIL_LENGTH];
char username[MAX_USERNAME_LENGTH];
char password[MAX_PASSWORD_LENGTH];
char website[MAX_WEBSITE_LENGTH];
bool isAc ..read more
Arduino Stack Exchange
1d ago
I am a little bewildered about the analog pins on the Arduino ATTiny88.
First of all, am I correct in thinking the functions analogRead() and analogWrite() can use either the string A0 - A7 or a decimal number as inputs? Since I need to use the pins A7, A0, A1, A2m A3, and A4 - in that order - as analog inputs and A6 as an analog output, it would be much more convenient to use decimal digits instead of the aforementioned strings.
If so, then there also is a bit of a question in my mind about the numbers themselves. It looks to me as if the pin numbers start with 0, rather than 1, so the right ..read more
Arduino Stack Exchange
1d ago
I need to send a .bin File for it to be consumed by InternalStorage from Arduino OTA library. I tried to use Arduino CLIs upload command like arduino-cli upload -i new_version.ino.bin -p AVRISP mkII -b arduino:avr:nano, but the programmers name is wrong and I cannot find any kind of list of them (if you have it, please provide). Looking it up in programmers.txt didn't help.
My setup is a Nano, connected to an UNO through ISP, which is in turn connected to PC by USB.
If there is a better way, than doing it using Arduino CLI, please elaborate. Thank you ..read more
Arduino Stack Exchange
2d ago
This is some very simple code I wrote for pin 4 to toggle between on and off every second. However, when I test it, (LED connected to pin 4 and ground), The LED outputs a constant dim glow. This happens on every pin, even if it isn't a part of the code and I have no idea why.
void setup() {
pinMode(4, OUTPUT);
}
void loop() {
digitalWrite(4, HIGH);
delay(1000);
digitalWrite(4, LOW);
delay(1000);
}
The circuit is running with at 5 volts, and my arduino is an arduino micro (A000053) Any help you can give is much appreciated! (Sorry, I am new to this stuff ..read more
Arduino Stack Exchange
2d ago
My goal is to write code where when a button is pushed once, the code starts and finishes its cycle (without holding down the button and no click to finish the code).
I'm using an Adafruit V1 motor shield as I'm attempting to control some DC motors.
At the moment I have the code running its cycles when the button is being pushed and held down.
Can you guys consult me to how to furnish this code for what is needed to be done to set it to one push starts and ends the cycle?
FYI the button I'm using isn't the 4-terminal small push button that Arduino uses; I'm using a regular 2-terminal push butt ..read more
Arduino Stack Exchange
2d ago
I've been researching, troubleshooting and understanding ways to program a code with a single push button. I started by having just a little progress, but now I've thrived much more. My goal is to conduct a code where as the button is pushed once, the code starts and finishes its cycle (Without holding down the button and no click to finish the code). I'm using a Adafruit V1 motor shield. As Im attempting to control some DC motors. In the moment I have the code running it's cycles when the button is being pushed and held down. Can you guys consult me to how to furnish this code for what is nee ..read more
Arduino Stack Exchange
2d ago
I have written an html code and saved it in a esp8266 as a webserver. in my code there is a form in which the browser must send some datas by post method to the webserver. unfortunately when i read the request from the client, it doesnot contain any data like "username=x". so i want to know what is the problem?
here is my esp8266 code:
#include <ESP8266WiFi.h>
const char* ssid = "SEAT1995";
const char* password = "vdek8575";
char html[]="<!DOCTYPE html><html lang=\"fa\"";
// Set web server port number to 80
WiFiServer server(80);
// Variable to store the HTTP request
Strin ..read more
Arduino Stack Exchange
2d ago
I'm trying to setup an installation of the IDE 2.3 in a Ubuntu 24.04 LTS (beta) environment, and am facing an issue I'm unable to resolve. The IDE gets to the GUI for accepting terms and conditions, and just crashes if I try to proceed.
What I tried from the internet The App Image complains about Chrome Sandbox. Someone has had this issue in the past, but in their case, they got a path for chrome-sandbox in /home/username/... so it was always the same, and they could chown it. I'm getting a random path in /tmp and it always vanishes after the App Image crashes.
Source: https://forum.arduino.cc ..read more