crypto-universal-device

ČUDO | crypto universal device – Octopus

ATM
PoS – Point of Sale
Vending machine
Lightning lighting – smart LN switch / LN doorlock


Hardware

ESP32 board
Displays Expander
TFT 160×128
Keypad 4×4 / 4×5
NFC-RFID PN532
Case – 3Dprinted

Software

Micropython

LNURL

CDF-RFC: https://github.com/agama-point/cdf-rfc
Request For Comments – We are trying to design a data format – primary for LN – machine2machine communication.

Case – 3D printed box

Thingiverse STL:
https://www.thingiverse.com/thing:5142637



Simple test and example


https://github.com/octopusengine/octopuslab/tree/master/esp32-micropython/examples/displays_expander
Keypad (LED 7segment display) “calculator”
NFC-RFID reader – UART2

ffirst common HW test:
https://github.com/octopuslab-cz/temporary-crypto-universal-device

Pinout

-----
ESP32 board:     [Disp.Exp.]
L-D0             []
L-D1 IO17 (PWM1) [TX2]
L-D2 IO02 (LED2) [TFT1-SC]x - ver.1
L-D3 IO16 (PWM2) [RX2]
R-D0 IO27 (DEV3) []
R-D1 IO25 (PWM3) [TFT1-SC] ver.2
R-D2 IO26 (IO26) [TFT1-DC]
R-D3
TX   IO04
RX   I36

-----
main TFT:
BL - 3V
SC - L-D2
DC - R-D2
RS - 3V 
SDA - MOSI
SCL - SCLK
3V
GND

cs  = 26 # Pin(26, Pin.OUT) #R_D2
dc  = 25 # Pin(2, Pin.OUT)  #L_D2 (ver.1 02 - ver.2 PWM3 25)
rst = 27 # xx > DEv3(27)

spi = SPI(2, baudrate=20000000, polarity=0, phase=0, sck=Pin(pinout.SPI_CLK_PIN), mosi=Pin(pinout.SPI_MOSI_PIN),  miso=Pin(pinout.SPI_MISO_PIN))
tft=TFT(spi, dc, 16, cs)   # tft(dc,rst,cs)

-----
I2C expander
010 = 0x25 
000 = 0x20 (default)

IRQ PIN 39
ver.1: 
| |-|
x x |
 
ver.2:
| | |
~ ~ |

----- 
PN532 - UART (TODO > I2C)

#UART1:
#uart.init(baudrate=115200, tx=pinout.TXD1, rx=pinout.RXD1, timeout=100)
#UART2:
uart.init(baudrate=115200, tx=pinout.PWM1_PIN, rx=pinout.PWM2_PIN, timeout=100)


---







Hackathon

https://github.com/octopuslab-cz/temporary-crypto-universal-device
-> https://github.com/agama-point/lnucd
– atm
– pos
-> https://github.com/agama-point/lnpos