Skip to content

Arduino code to repurpose Ikea Rothult lock for serial control

License

Notifications You must be signed in to change notification settings

jetpilot305/Rothult-Arduino

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rothult-Arduino

Now Arduino programmable and Serial controlled

Arduino code to repurpose Ikea Rothult lock for serial control

Accepts single character commands from serial input (9600,n,8,1)

Character Command
B Buzzer
O Open
C Close
1 Small move CW
2 Small move CCW

STM32L051K86 UFQFPN32

Pinout

Pin IO Connection
PA14 O SWCLK (Pin 1 Header)
PA13 IO SWDIO (Pin 2 Header)
PA10 I USART1 RX (Pin 5 Header)
PA9 O USART1 TX (Pin 6 Header)
PA15 O Buzzer
PB4 I Switch (extended)
PB5 I Switch (restracted)
PB7 O Motor CW
PB8 O Motor CCW
PC14 O Battery Load (100 Ohm)
PA1 O Battery Voltage Divider Reference (set to 0)
PA2 I Battery Volt/2
PA4 O ~SS to RFID
PA5 O SCLK to RFID
PA6 I MISO from RFID
PA7 O MOSI to RFID
PB0 I IRQ from RFID

Header

Pin Connection
1 SWCLK
2 SWDIO
3 +3V
4 GND
5 USART1 RX
6 USART1 TX

Based on the work from Brian McEvoy & Allmänt Grinande

(https://blognamn.wordpress.com/2018/11/01/teardown-of-the-ikea-rothult-rfid-lock/)

(https://hackaday.com/2019/05/05/ripping-up-a-rothult/)

(http://www.24hourengineer.com/2019/04/2019-04-09-tu-ikea-rothult-teardown.html)

1) Install Arduino

2) Add STM32duino to Arduino

Arduino STM

3) Create L051 variant

L051 variant needs to be added to STM32Arduino package by adding/modifying files at C:\Users...\AppData\Local\Arduino15\packages\STM32\hardware with files from repository.

4) Arduino Configuration
Arduino Configuration

5) Compile INO from repository using Arduino

Arduino Compile

6) Connect ST-LINK to SWD interface using Rothult Header

ST-LINK Connection

7) Program device using ST-Link

ST-LINK Program

About

Arduino code to repurpose Ikea Rothult lock for serial control

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published