User:Beau-K6eau
Hello world
37C3
Hacker Dojo 37C3
Getting to Blinky
MicroPython & ESP8266
code
from machine import Pin, ADC from time import sleep_ms print('Hacker Dojo ESP8266 booting...') # MicroPython Getting Startred Reference # http://docs.micropython.org/en/latest/esp8266/quickref.html#pins-and-gpio # AI Thinker EASP8266 Module Pin Out # https://i0.wp.com/randomnerdtutorials.com/wp-content/uploads/2019/05/ESP8266-ESP-12E-chip-pinout-gpio-pin.png # LinkNode D1 Arduino Uno form factor # https://learn.linksprite.com/linkspriteio/linknode/linknode-d1/ # TODO: Feature # https://wiki.seeedstudio.com/Grove-LED_String_Light/ p0 = Pin(0, Pin.IN, Pin.PULL_UP) # Button # https://learn.adafruit.com/pir-passive-infrared-proximity-motion-sensor/overview p2 = Pin(2, Pin.IN) # PiR p12 = Pin(12, Pin.OUT, value=1) # GREEN p13 = Pin(13, Pin.OUT, value=1) # RED p14 = Pin(14, Pin.OUT, value=1) # BLUE a0 = ADC(0) # Light Sensor https://arduinogetstarted.com/tutorials/arduino-light-sensor def button_handler(pin): print("button") blink() def pir_handler(pin): print("PiR") motion_trigger() # https://randomnerdtutorials.com/micropython-interrupts-esp32-esp8266/ p0.irq(trigger=Pin.IRQ_FALLING, handler=button_handler) p2.irq(trigger=Pin.IRQ_RISING, handler=pir_handler) def motion_trigger(): for i in range(0, 10): p13.value(not p13.value()) sleep_ms(100) def blink(): p12.value(0) sleep_ms(200) p12.value(1) p13.value(0) sleep_ms(200) p13.value(1) p14.value(0) sleep_ms(200) p14.value(1) blink() def do_connect(): import network wlan = network.WLAN(network.STA_IF) wlan.active(True) if not wlan.isconnected(): print('connecting to network...') wlan.connect('Hacker Dojo Free', 'hackerdojo') while not wlan.isconnected(): pass print('network config:', wlan.ifconfig()) # do_connect()
Made with a breadboard and random bits found in the electronics lab. 37C3 hack'n with Brick Breakers.
Log
Thursday January 18th, 2024
- Picking up IC-706 from QSV bench
- TODO: replace with QB 25
- Taking out random box of trash
- Powered Mo Bot, some issues, parked next to shelf
Tuesday January 16th, 2024
- Meeting with John on Microprobing class
- 2M Station test with N6NFI/R
- Installed 120 GB SATA test stick to X1 Carbon (L1)
- Sean & Charlie drop-in for drone repair
Thursday January 11th, 2024
- Type A Series 1 Pro testing
- SATA Drive Pickup (Foster City)
- Evening remote visit via "Mo Furious"
Tuesday January 9th, 2024
- 8am arrival
1.55.5 hours on compiling/install svxlink for EchoLink on rPi4 & ThinkPar Arch- Raspberry Pi issue with pulseaudio initialization
- Arch config in process, sticking with pi route
- TODO: Create NAT for TCP 5200 as well as UDP 5198 and 5199 to the Pi
- install SSD in T420 ThinkPad, loaded with Debian 12, apps and config
- install SSD in T430 ThinkPad, loaded with Debian 12, apps and config
Thursday January 4th, 2024
replicator
- backing up thumb data & gqrx to
/data
- updating arch packages
- backing up thumb data & gqrx to
- dumped Pixel Blaze v2 firmware bin for backup
- Added headers to S3 dev board and flashed to MicroPython v1.22
Tuesday January 2nd, 2024
- Getting to "HOW" and blinky with Osram PDSP 1881 & S3
- Re-attaching APA102 strip with Pixel Blaze to whiteboard
Monday January 1st, 2024
- QSV Lunch 12:34
- V3561182 Radiosonde recovery
Saturday December 30th, 2023
- Initial Pixel Blaze v2 APA102 bring up
- Basic blinky hack'n with Drone Racing in Main Room
Friday December 29th, 2023
- Pixieboard DUO debugging
- 6 boards evaluated, red & green
- Balloon Tracker tested
- 2nd bench nice and clean/clear as well
Sunday December 26th, 2023
- Relay sorting, couple dozen 24v & assorted AMFs
- 3D printer bench clean up