Posts

Raspberry pi to Raspberry pi LoRa sx1278 communication Via Arduino Esp32 Serial communication

Image
Data Flow-     RPI -> <- ESP32(Arduino) -> <- LoRa SX1278 -> -----<- LoRa SX1278-> <- ESP32(Arduino) -> <-RPI Demo Video-  https://youtu.be/7apXm8SlbFk?si=TTdfYNFo6x1Nw2ef 1. Enable Serial port with command- sudo raspi-config      Interface Options → Serial Port → Enable                        â†’ Serial Login shell → Disable      Login shell over serial? → No      Enable serial port hardware? → Yes      Command- sudo reboot 2. command- pip install pyserial  (if Needed) 3. port command- ls -l /dev/serial* /dev/ttyS* /dev/ttyAMA* 4.  Connection and Circuit diagram- A. ESP32 ↔ Raspberry Pi (UART Communication) Raspberry Pi GPIO Connected to ESP32 Description GPIO14 (TXD) GPIO26 (RX) RPi TX âžœ ESP32 RX GPIO15 (RXD) GPIO27 (TX) RPi RX ⬅ ESP32 TX GND GND Common ground ✅ You are using SoftwareSerial on ESP32 pins 26 ...

Smart glasses with location address and translation DIY Edith specs

Image
1. Project folder(App, code and circuit diagram)-  https://drive.google.com/drive/folders/1DIOnyDH0AMn6cNU-bptEGlkgNnT4GoUG 2. Final project- Features- Date and time Live location address  Translation to english Message communication Audio output on earphones Rechargeable with all battery protection Auto reconnect to Bluetooth App        3. Follow circuit diagram- *Components list- Shop- https://futuristiciox.blogspot.com/p/shop.html?m=1 >ESP32 wroom >0.96 inch OLED display  >3.7v lipo or 18650 lithium ion battery 600mah >to 2600mah >134n3p Charging module with 5v boost Switch 4. Upload code to ESP32- #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #include "BluetoothSerial.h" #define SCREEN_WIDTH 128 #define SCREEN_HEIGHT 64 #define OLED_RESET -1 #define G_MESSAGE_TIMEOUT 30000 // 30 seconds Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET); BluetoothSerial SerialBT...

Fix/Format SD Card After Using Raspberry Pi or Linux Boot Disk Drive reformat

Image
Fix/Format SD Card After Using Raspberry Pi or Linux Boot Disk Drive Plug SD card, go to command line(run as Administrator) and follow these commands 1. diskpart 2. list disk 3. select disk 5 4. list disk ->*selected 5. clean 6. create partition primary 7. format fs=Fat32 Quick (1min-Recommended) or format fs=Fat32 (50min-not recommended)  and format fs=exFAT quick for >32GB SD card 8. exit

How to program Raspberry pi pico /w/wh etc with Thonny IDE and Arduino IDE

Image
How to program Raspberry pi pico /w/wh etc with Thonny IDE and Arduino IDE Arduino IDE Preferences link -  https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json UF2 file download link for Thonny IDE-  https://www.raspberrypi.com/documentation/microcontrollers/micropython.html#what-is-micropython:~:text=Download%20the%20correct,Pico%202%20W Pico Factory reset/Erase All - https://www.raspberrypi.com/documentation/microcontrollers/pico-series.html#software-utilities:~:text=Download%20the%20UF2%20file blink code- import machine import utime led_onboard = machine.Pin(25, machine.Pin.OUT) while True:             led_onboard.toggle()             utime.sleep(1)

CAN bus data read with MCP2515 on CANhacker terminal via Arduino IDE and ESP8266 Car or battery BMS

Image
CAN bus data read with MCP2515 on CANhacker terminal via Arduino IDE and ESP8266 Car or battery BMS  Code link- https://github.com/gsrathore97/CANHackerProject Video link- https://www.youtube.com/watch?v=rWEZJeNOWSg There is two configuration 1- BMS and Microcontroller are already communicating with each other in the manufacturer's system In this case we can only read from this system using Arduino(broadcast type). 2- BMS is there with CAN system In this case we have to send CAN request frame commands to get the data on Arduino only.(Command and listen)

Neo-6m GPS module testing code- "No GPS data received: check wiring" error problem

Image
Neo-6m GPS module testing code- "No GPS data received: check wiring" error problem. solutions 1. Do not short circuit Antenna to pins 2. Test in open Sky 3. Battery may low, power it to recharge. 4. 5V power is best 5. Patience while connecting wait 2 min 5min atleast. 6. TinyGPSplus library link- https://github.com/mikalhart/TinyGPSPlus/tree/master #include <TinyGPSPlus.h> #include <SoftwareSerial.h> /*    This sample code demonstrates the normal use of a TinyGPSPlus (TinyGPSPlus) object.    It requires the use of SoftwareSerial, and assumes that you have a    4800-baud serial GPS device hooked up on pins 4(rx) and 3(tx). */ static const int RXPin = 4 , TXPin = 3 ; static const uint32_t GPSBaud = 4800 ; // The TinyGPSPlus object TinyGPSPlus gps; // The serial connection to the GPS device SoftwareSerial ss ( RXPin, TXPin ) ; void setup () {   Serial . begin ( 115200 ) ;   ss . begin ( GPSBaud ) ;   Serial . println (...

Arduino CNC shield test code demo 3 nema 17 stepper motor control

Arduino CNC shield test code demo 3 nema 17 stepper motor control const int StepX = 2 ; const int DirX = 5 ; const int StepY = 3 ; const int DirY = 6 ; const int StepZ = 4 ; const int DirZ = 7 ; const int EnablePin = 8 ;  // Added Enable pin void setup () {   pinMode ( StepX, OUTPUT ) ;   pinMode ( DirX, OUTPUT ) ;   pinMode ( StepY, OUTPUT ) ;   pinMode ( DirY, OUTPUT ) ;   pinMode ( StepZ, OUTPUT ) ;   pinMode ( DirZ, OUTPUT ) ;   pinMode ( EnablePin, OUTPUT ) ; // Set Enable pin as output   digitalWrite ( EnablePin, LOW ) ; // Enable all stepper drivers (LOW = enabled) } void loop () {   digitalWrite ( DirX, HIGH ) ; // Direction: HIGH = CW, LOW = CCW   digitalWrite ( DirY, HIGH ) ;   digitalWrite ( DirZ, HIGH ) ;     for ( int x = 0 ; x < 200 ; x++ ) {     digitalWrite ( StepX, HIGH ) ;     delayMicroseconds ( 500 ) ;     digitalWrite ( StepX, LOW ) ; ...