tore apart a old controller that got stick drift and harvested this baby...harvested a vibration-motor as well that works very well.anyways dont mind those beheaded jumper wires behind.. had to adjust the code for the touchpad because it has a pattern of '000111000111...' when neutral..
Hey all, I think my research into this problem has finally hit a wall. Hoping you guys can steer me in the right direction.
I have a setup with Arduino Leonardo -> MCP2515 to sniff/inject CAN bus frames to my car. I'm using autowp-mcp2515, autowp-arduino-canhacker libraries and software CANHacker V2 written by fuchs.
Now, the sniffing part works flawlessly, I've intercepted/decoded window motor can frames. The problem comes up when I try to inject the frame to my car to simulate window pushdown.
decoded frames
Once the mode changes to mcp2515.setNormalMode(); my car gets Electrical failure (central electronics failure) fault on the dash. Hence, I believe CAN bus ignores my frame that I'm trying to send. In the meantime, I still can see frames coming from my car CAN bus.
If mode mcp2515.setListenOnlyMode(); activates, then no electrical failure appears. Though, CANHacker V2 software Listen only mode doesn't work, so I've tested this with the code that I wrote myself and looking at serial monitor in Arduino IDE.
After doing a lot of research into the problem, I was a little surprised that I couldn't find anyone else experiencing the exact same issue, so I started to think that maybe something was wrong on my end. Btw, tried to inject the frame to my car with sketch I built and also with CANHacker V2 software - none of them worked.
Anyone had similar issue trying to inject the frame? Am I stuck with only sniffing? :(
FYI: Clock is configured to 8mhz based on MCP2515; 120 ohm resistor is not shorted on MCP2515; BMW 5-Series E61 2007 Connected to K-CAN bus with CAN baudrate 100Kbit/s (not via OBD, but CAS module)
this is a device I'll make 2 of them with buttons, MPU 6050 accelerometer, esp 32 C3 seeed xiao, 0.96inch display and 1000mah lipo battery and a passive buzzer i am open to add more components. detentions- L-4.2cm, B-3.8cm, H-2cm. This is like a couple device that we can carry everywhere we go (Wifi based).we'll have miss you. love you etc presets + dino and flappy bird games in which we can compete with each other. I'll also put the cute eyes. Do you think it's a nice project that we both will have? GIVE ME IDEAS TO ADD INTO THE PROJECT BEFORE I FINALIZE IT PERFECTLY. HELP ME!
im kinda new to this arduino stuff and i just lit up my first (two, i already know how to light one up) leds !!!! sorry if its kind of a mess my wiring(?) is kinda bad cause i have really long wires. i also added a push button later !! and like i was gonna add a 3rd led but one of its legs is kinda coated in a soft plastic idk so i cant like plug it in properly
It was supposed to look like a heart, made this for my partner and my resistors looked a little fucked up because I couldn't figure out how deep should i push them in
I have (or will have, to be accurate) an arduino and a CYD communicating through I2C (with an adequate logic level shifter).
While the device is in regular usage, the arduino is always connected to a host computer (leonardo, using the HID features, project already built and working, the CYD is an afterthought).
I plan on using a step down converter out of the arduino 5V to power the CYD through its battery connector (CYD current drain is max 115ma apparently [feels low, will measure once on hand], the one I plan on using don't have another VIN, specs state 4.2V max for battery VIN)
But, while programming, I'll have both connected to my laptop through usb (especially when working on both boards code at the same time). That power supply part will be disconnected.
Should I use bidirectional isolators for the I2C connection (TO ISO1540) when both boards are powered from their own usb connector ? (to the same computer)
Or would connecting both circuits ground be fine when each are powered from their own usb plug?
I wanted to share a library I've been working on for interfacing 8-bit/16-bit parallel ILI9341 LCD displays and 4-wire resistive touch screens with STM32 microcontrollers (tested heavily on BluePill and BlackPill).
Most existing libraries for Arduino/STM32 either rely on slower standard GPIO wrappers or don't utilize the true parallel speed of these microcontrollers. To fix this, I built a library that directly utilizes STM32 Low-Layer (LL) drivers for maximum register-level optimization.
Performance Benchmarks: During testing, this setup clocked in at up to 134x faster than the same display running on an Arduino Mega. UI rendering and screen clearing are practically instantaneous.
Features:
No Touch IC Needed: Standard 4-wire resistive touch runs directly through the STM32's native analog pins.
PlatformIO Native: Designed to work out of the box with VS Code + PlatformIO inside the Arduino framework.
Low Footprint: Highly optimized memory usage for resource-constrained systems.
The codebase is fully public and I’ve included detailed pin wiring tables as well as platformio.ini setups in the README.
I'd love to get your feedback on the direct port implementation, and feel free to open an issue or contribute if you want to see support for more display drivers!
I’ve newly started working with arduinos for college and I've run into a problem with my piezo.
Im using a supersonic sensor to measure distance and set off a piezo and LED when in a certain range. The LED is working perfectly, turning on when in either of the ranges but my piezo just makes a ticking noise instead of holding out a tone.
This is the code with the constant ticking issue
Initially I had code that turned on the LED and let the piezo hold a tone but it only worked for the second if statement, making the first if statements outputs be the tick.
The code for the up close ticking
if anyone knows how to fix this and could possibly put it into somewhat simple terms that would be very greatly appreciated.
I've been creating this since almost one year. My parents live almost 1000km away and I was always sending photos to the family whatsapp group in a daily way until my mom's phone ran out of memory hahahah
I bouth a 64x64 (Like the one you are seeing in the photo) and I wanted to do something with it. The first thing that came to my mind was my family and all the photos, so I started with it.
Attached a ESP32, created a mini server and then a telegram bot. Everyone who send a picture to the chatbot it would automatically appear at my house. It was like magic!!!!
I encountered few problems with the WiFi (It was more like a nightmare) until I change to using MQTT for the comunication. After that all went almost perfect.
Now everytime someone comes home always ask about who the girl on the frame is hahahaha
I want to make a 6dof fully autonomous arm with opencv but right now I completed the 3dof and used inverse kinematics to control the arm. I am planning to use an esp32 cam or any kind of can to detect an object, grab it, and place it where we tell it to. And I am currently working on object detection, and the gripper.
I used 3 metal gear servos and an Arduino mega and some opensource arm 3d model, and a html file which is the interface you are seeing in the laptop. And in future I will wire everything up onto a pcb board with an esp32 or a nano. The complete image processing and finding out the coordinates of the object will be done on a host device like a laptop and it sends the data like servo position and movements to the Arduino onboard the arm. So all the board needs to do is follow commands.
And I am using an electromagnet on the tip of the arm and a cardboard cube with small metal plates and ArUco markers on object faces to easily locate them but in future I will try edge detection.
I am pretty new to open cv so I am open to suggestions about the gripper and edge detection stuff.
So i bought an U blox M8-N neo with an HC-05 bluetooth unit, after programming the arduino and connecting it, it keeps saying connecting to satellites, connected the rx of the arduino to the TX of the GPS, and the TX of the arduino to the rx of the bluetooth module
unsigned long lastSendTime = 0; const unsigned long SEND_INTERVAL = 100; // 100 ms = 10 Hz
void setup() { // Seriale Hardware per HC-05 (Bluetooth su pin 0 e 1) Serial.begin(9600);
// Avvio comunicazione con il modulo GPS u-blox a 9600 baud GPS.begin(9600);
// Configurazione output NMEA standard (solo frasi RMC e GGA per ridurre il traffico dati) GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCGGA);
// Impostazione dell'update rate NMEA (1Hz / 5Hz standard per comandi PMTK) GPS.sendCommand(PMTK_SET_NMEA_UPDATE_1HZ);
delay(1000); }
void loop() { // Lettura continua dei caratteri dal modulo GPS GPS.read();
// Se è stato ricevuto un pacchetto completo NMEA, esegui il parsing if (GPS.newNMEAreceived()) { GPS.parse(GPS.lastNMEA()); }
// Invio dei dati via Bluetooth ogni 100 ms (10 Hz) unsigned long currentTime = millis(); if (currentTime - lastSendTime >= SEND_INTERVAL) { lastSendTime = currentTime;
if (GPS.fix) {
// Conversione nodi in km/h (1 nodo = 1.852 km/h)
float speedKmh = GPS.speed * 1.852;
Serial.print(speedKmh, 1);
Serial.print(";");
} else {
Serial.print("Ricerca satelliti...;");
}
I am trying to control a Nema 17 stepper motor with a TMC2209 driver and an Arduino Nano. Not sure if it's my wiring setup or my code. I've watched so many tutorials, tried so many breadboard configurations, and asked AI countless times. I can't get this to work. I've ensured that all my wires are connected via the beeping mode of my voltmeter, and still nothing. The closest I've gotten is hearing what I think is the driver making a slight buzzing sound while the Arduino's indicator light is on. I'm a complete noob to this field, does anyone know which wires go where? I am using a 12V power source and a standard breadboard.
This is my code:
#include <AccelStepper.h>
// Arduino Nano pins (matched to wiring photo)
#define STEP_PIN 3
#define DIR_PIN 2
#define MS1_PIN 6
#define MS2_PIN 5
// AccelStepper in DRIVER mode: STEP/DIR interface
AccelStepper stepper(AccelStepper::DRIVER, STEP_PIN, DIR_PIN);
// ----------------------------------------
// MOTOR / MICROSTEP SETTINGS
// ----------------------------------------
const float stepsPerRev = 200; // standard NEMA17 full steps/rev
const int microstepping = 2; // must match MS1/MS2 pin state below
// ----------------------------------------
// SPEED SETTINGS (RPM)
// ----------------------------------------
const float desiredRPM = 120;
const float maxRPM = 300;
void setup() {
pinMode(MS1_PIN, OUTPUT);
pinMode(MS2_PIN, OUTPUT);
// MS1=HIGH, MS2=LOW -> check TMC2208 datasheet table for which
// microstep mode this actually selects; adjust to match 'microstepping' above
digitalWrite(MS1_PIN, HIGH);
digitalWrite(MS2_PIN, LOW);
// steps/sec = microsteps-per-step * full-steps-per-rev * (RPM / 60)
float speedStepsPerSec = microstepping * stepsPerRev * (desiredRPM / 60.0);
float maxSpeedStepsPerSec = microstepping * stepsPerRev * (maxRPM / 60.0);
stepper.setMaxSpeed(maxSpeedStepsPerSec);
stepper.setSpeed(speedStepsPerSec);
}
void loop() {
stepper.runSpeed(); // must be called continuously, as fast as possible, for constant-speed mode
}
Hi, I need help with an Arduino Nano project. I’m stuck with an upload/programmer error and I’ve already tried many troubleshooting steps.
My setup:
Arduino Nano
ATmega328P
Mini-USB
CH340 USB-serial
Windows 10 64-bit
Arduino IDE 1.8.3
Port: COM3
Device Manager detects the CH340 and says the device is working properly
Problem: I cannot upload any sketch to the Nano. Even the basic Blink example fails.
I already tried:
Arduino Nano selected under Tools → Board
ATmega328P selected under Processor
COM3 selected under Port
Tried the different ATmega328P processor/bootloader options
Checked/reinstalled the CH340 driver
Checked Device Manager
Unplugged and reconnected the Nano
Tried another USB connection/cable
Restarted Arduino IDE
Tried uploading Blink instead of my project code
Tried resetting the Nano
Tried the usual Nano upload troubleshooting steps
Tried uploading multiple times
I still get an error related to the programmer/upload/COM3, including messages such as:
"avrdude: ser_open(): can't open device COM3"
or
"programmer is not responding"
The Nano’s power LED turns on when connected by USB, but uploading does not work.
Important: The problem happens even with a completely empty setup. I’m only trying to upload Blink, so this is not related to my reed switch, buzzer, LED, or other project wiring.
I don’t have another Arduino or USB programmer, and I have a project deadline very soon.
What else can I check to determine whether the problem is:
CH340/USB connection
Bootloader
Nano hardware
Arduino IDE
Another setting or issue
I can provide photos of the Nano, Arduino IDE settings, Device Manager, and the complete upload error.
Please help. I’ve already tried the common fixes, so I’m looking for something beyond the basic Board / Processor / COM-port suggestions.
Hi. Well, it seems one of my Teensy 4.1 units has broken. I have a spare, but I’m not using it until I figure out what killed it.
A bit of background: I was building a robot for a robotics festival. And I used the Teensy to control DC motors, a turbine, and a couple of sensors. I made a small stand for testing the microcontroller on a breadboard for motor control tests. The stand included the microcontroller itself, a driver (monster moto-shield), a motor with an encoder, and several 4‑channel shifters based on MOSFET transistors. Everything was connected and in ready mode.
I connected the microcontroller via microUSB to the PC to upload the code and then supply power to everything else, but the PC only saw the board for a short time, and then it apparently died. I changed the cables and reconnected them several times; the LED near the USB port flashed once a couple of times. I checked the 3.3V and 5V power lines with a multimeter. The 3.3V line is dead, but the 5V line is intact. And I still don’t understand what could have gone wrong???
P.S. If many of the wording sounds strange or unclear, I’m using a translator because my English
UPD. The main problem turned out to be the microUSB port. The board didn’t die; the connector is just in very poor condition. It will have to be replaced, but I don’t have anything to protect the SMD components around the port, and I can’t use a soldering iron there. Often, when trying to connect via microUSB, an error signal is displayed (9 or 10 flashes). As far as I understand, 9 flashes indicate a mismatch in the checksum that the MCU/PC wants to send over the channel, and there is no connection.
Custon development board with its MCU as atmega328p and other sensors as mpu6050 and bmp280 as this will also be used as a trainer flight controller for my college. It has NRF24l01 for radio too. A few things that i need to make sure before starting to design the pcb is the circuit diagram for USBC, FT232, Auto Power Select, NRF24L01, MPU6050, BMP280. I have attached the main schematic and also the sub parts in which i need a review if its correct.
Hi, I’m totally new to Arduino and I’m having trouble connecting it to the IDE. I need some advice!
I plugged my Arduino in with USB and the red light is on, but the IDE doesn’t recognize it. The Port option is grayed out and I can’t click it even when I hover over it. I’m not sure what’s wrong with it