Help with PID controller on dual-axis "solar" tracker
Arduino Stack Exchange
by Austin Seward
6h ago
I'm working on a dual-axis "solar" tracker for my university. My issue is primarily with tuning the PID that controls output to the two servos. When incrementing the proportional gain, my horizontal servo always lands around 0deg and appears to "stabilize" there. The value of the input settles around 1.33 and my set point is 1 exactly (based on the division of top/bottom or left/right LDRs when all directly facing the light). The vertical portion does something similar, settling at a different value and never going to 1. I have varied proportional values from Kp = 0.00001 to 15000 and also att ..read more
Visit website
Problem with movements
Arduino Stack Exchange
by Aditya Roy
17h ago
My raycaster is all set but the movement is still not that much good ,left and right inputs are taken continuously without a touch ,if anyone can help me then it will be awesome.so here's the code! #include <Adafruit_ILI9341.h> #include <Arduino.h> #include <SPI.h> #include <vector> #include <Bounce2.h> #define TFT_CS 15 #define TFT_RST -1 #define TFT_DC 33 #define BUTTON_UP 4 #define BUTTON_DOWN 14 #define BUTTON_LEFT 34 #define BUTTON_RIGHT 35 #define TFT_WIDTH 320 #define TFT_HEIGHT 240 #define MAP_WIDTH 15 #define MAP_HEIGHT 15 #define TILE_SIZE 20 // To edi ..read more
Visit website
Communication between 3.3 V and 5 V system
Arduino Stack Exchange
by Samy ashraf
1d ago
I am using an ESP8266-01S that only works with 3.3 V power. I want to control a 5 V relay. I gave each component its own power source and got an NPN transistor and wired it like in the diagram, but for some reason, it's not working when I power the transistor from the GPIO2 pin. When I plug the middle pin of the transistor to the 3.3 V the relay works fine. I don't want to use a logic convertor and I want the solution to be small and simple ..read more
Visit website
Interrupt protection in ESP32 from interference signals
Arduino Stack Exchange
by Just doin Gods work
1d ago
When ESP32 power with external 5V adapter or 12V Power (2596 DC-DC to 5V), and water meter (reed switch) connected with ESP32. The pulse start running wild and kept increasing at each interval (of debounce delay) When I connect ESP32 with my laptop same USB port, there is no random pulses on ESP32 with reed switch wires connected. Reading 4 pulses, storing those counter in EEPROM, using interrupt on GPIO 25, 26, 27 and 35. Code : #include <EEPROM.h> #define PULSE_ADDRESS 200 #define pin35 35 #define pin25 25 #define pin26 26 #define pin27 27 const int Pulse1 = pin25; const int Pul ..read more
Visit website
ESP8266 NodeMCU ESP relay control problem
Arduino Stack Exchange
by Jason Crosby
1d ago
I'm running into a problem trying to control a relay with ESP8266. The relay works I can manually apply power and hear it click when it turns on/off. I'm taking one of the digital outputs to control the relay, D2. It goes through a resistor then to an NPN transistor which outputs about 5 volts when D2 is high. This does not work as I do not hear the relay clicking every few seconds. As I said I know the relay works because I can manually toggle it and I hear the click each time. I only have problems when I run it. 5v should be enough toggle the relay but it doesnt. Any idea what might be happe ..read more
Visit website
Arduino circuit diagram [closed]
Arduino Stack Exchange
by Khizar Quaid
2d ago
Where can I make circuit diagrams similar to the one below. I tried tinkercad but it didn't have all the components I needed. https://www.hackster.io/monalisa-paul/arduino-bluetooth-car-arduino-uno-l293d-hc-05-b88551 ..read more
Visit website
How to create html test reports in python from an electrical test [closed]
Arduino Stack Exchange
by Astralix
2d ago
I am not able to find the right search string to solve that problem myself. Searching the keywords "python test report html" only provides a lot of references to tests, that test python itself. Basically software / unit tests. I have a lot of RF hardware that is used to test and calibrate other RF hardware and I automated that in python. The results are text logs on the screen. Question: Is there a library for python that takes logical and numeric minimum, maximum and result as input, formats that as a table, marking good and bad values and compiles that into an html report? If it then could a ..read more
Visit website
Photoresistor reads different values based on program running?
Arduino Stack Exchange
by Starb3an
2d ago
The project: I automated my mini blinds to open and close based on sunlight. Generic Arduino nano, 2 servo motors run by 2 A4988 drivers to open and close the blinds, 2 limit switches to identify if the blinds are closed, Adafruit ADA2748 breakout board for measuring light, custom built 12v to 5v regulator, and an error LED. The issue: When running the program, the read in light value changes very little. In bright sunlight, it runs about 920 (it also bounces around a lot, not sure why for that either). When the sun is fully down and only apartment lamps are on (not close to the sensor) it rea ..read more
Visit website
How do I connect my Arduino ESP32 to Dropbox using a Dropbox token to upload there a .txt file?
Arduino Stack Exchange
by N.S.
2d ago
I have an Arduino ESP32-S3-MINI-1 connected to my Wifi. I'm having troubles into connecting it to Dropbox for uploading a .txt file. I've already the Dropbox token, can someone provide me the .ino source code? I have also problems using libraries such as SPIFFS.h or WiFiClientSecure.h since my Arduino IDE seems not able to find them in the library manager. #include <WiFi.h> #include <SD.h> #include <ArduinoHttpClient.h> const char* ssid = "SSID"; const char* password = "PASSWORD"; const char* dropboxToken = "TOKEN"; const int chipSelect = 4; void setup() { Serial.begin ..read more
Visit website
Adding LCD + Button Shield to Arduino Mega 2560 with W5100 Ethernet Shiled
Arduino Stack Exchange
by George Blake
3d ago
I bought the W5100 Shield for my Arduino Mega 2560 (https://www.amazon.com/dp/B00HG82V1A?psc=1&ref=ppx_yo2ov_dt_b_product_details). I am using the K3NG Rotator Controller program to make a Ham Radio Antenna Rotator. K3NG spent a lot of time as well as others on this program and my hat is off to him. However, I have spent a lot of time fixing LCD display bugs. He never finished the coding for an LCD display with I2C. I finally got that fixed. However, I bought one of those HD44780 LCD display shields with the pushbuttons for control. (https://www.amazon.com/dp/B00OGYXN8C?psc=1&ref=ppx_y ..read more
Visit website

Follow Arduino Stack Exchange on FeedSpot

Continue with Google
Continue with Apple
OR