Skip to content

Instantly share code, notes, and snippets.

@Corteil
Corteil / Balance-monitor-BMS.ino
Created May 20, 2023 08:20
added monitoring function and created a simple menu.
// CAN readout of VW type 5 modules
// ------- Programa adaptado por Alfonso para comunicar las celdas SDI de VW a 15-04-2022
// ------- Funciona con un Arduino nano, y el MCP2515, la interrupción del integrado interrumpe algunos comandos, pero en general va respondiendo con 1 módulo solo conectado.
//
// ------- Program adapted by Alfonso to communicate VW SDI cells to 04-15-2022
// ------- It works with an Arduino nano, and the MCP2515, the IC interrupt interrupts some commands, but in general it responds with only 1 module connected.
//
//
//
// Link información muy útil: https://openinverter.org/wiki/VW_Hybrid_Battery_Packs
@Corteil
Corteil / ibus_test.py
Created June 29, 2023 23:23
Circuitpython code for ibus servo protocal
import time
uart = busio.UART(rx=board.SLOT2.FAST2, tx=board.SLOT2.FAST1, baudrate=115200, bits=8, parity=None, stop=1 )
buffer=bytearray(31)
error_flag = False
while True:
c=uart.read(1)
#time.sleep(0.005)
@Corteil
Corteil / AcUco_tag_gen.html
Last active March 25, 2026 23:01
my take on an AcUco tag generater, self-hosted html page
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ArUco Tag Generator — HackyRacingRobot</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Barlow+Condensed:wght@300;400;600;700&display=swap');
:root {