Create a Luos Biometric Security System on Two Nucleo L432KC
by MarieBidouille in Circuits > Gadgets
600 Views, 7 Favorites, 0 Comments
Create a Luos Biometric Security System on Two Nucleo L432KC
I came across the presentation Luos did at Tech Crunch and was intrigued so I decided to try to integrate their technology in an open-source project.
For those of you who don't know, Luos is a new way to think and design embedded applications as a micro-services architecture. For a better explanation you can watch this video.
I made my first version with an Arduino Zero because I already knew Arduino and I didn't want it to take me too much time. This first project helped me understood better the usefulness of a technology like this and it made me want to go deeper. So in order to try the multiple boards and plug and play features I decided to adapt my first project on two Nucleo L432KC.
If you want to see the Arduino Zero version go check this out :
To resume, today we are going to create a biometric security system developed on two boards but as a single system image, it could be use to lock a garage door, a box or anything you want and thanks to Luos it's going to be easy and reusable, wow.
Supplies
Here is a list of the components I used to make this project but feel free to adapt it as much as you want.
- 2 Nucleo L432KC
- 4 Push Buttons
- Servo Motor
- Green LED
- Red LED
- 1k Resistor
- LCD Screen
- Fingerprint Sensor
- Breadboard and connecting wires
To code this project I used Visual Studio with the Platformio extension.
Build the First Circuit
Take your breadboard and connect your fingerprint sensor, buttons and LEDs with experimental wires as shown in the pictures. Don't forget to connect the A9 and A10 pins together for the Luos communication !
Build the Second Circuit
Take your breadboard and connect your LCD display and servo motor with experimental wires as shown in the pictures. Again, don't forget to connect the A9 and A10 pins together for the Luos communication !
Connect Two Boards Together
Now that all your components are connected we can proceed to connect the boards together by adding two wires as you can see above.
Flash the Boards
Clone this repository and open it in Platformio :
https://github.com/mariebidouille/L432KC-Luos-Biometric-Security-System
Take your L432 with the fingerprint sensor then go to line 96 of the /src/main.c file and change the code from this :
/* Initialize all configured peripherals */ MX_GPIO_Init(); /* USER CODE BEGIN 2 */ Luos_Init(); Lcd_Init(); Servo_Init(); Gate_Init(); Pipe_Init(); BiometricSecurity_Init(); Button_Init(); Fingerprint_Init(); Led_Init(); /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ Luos_Loop(); Servo_Loop(); Lcd_Loop(); Gate_Loop(); Pipe_Loop(); BiometricSecurity_Loop(); Button_Loop(); Fingerprint_Loop(); Led_Loop(); } /* USER CODE END 3 */ }
to this :
/* Initialize all configured peripherals */ MX_GPIO_Init(); /* USER CODE BEGIN 2 */ Luos_Init();/* Lcd_Init(); Servo_Init(); Gate_Init(); Pipe_Init(); BiometricSecurity_Init();*/ Button_Init(); Fingerprint_Init(); Led_Init(); /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ Luos_Loop();/* Servo_Loop(); Lcd_Loop(); Gate_Loop(); Pipe_Loop(); BiometricSecurity_Loop(); */ Button_Loop(); Fingerprint_Loop(); Led_Loop(); } /* USER CODE END 3 */ }
Then you can build it and upload it to you board.
Once it done unplug the first board and plug the second board with the LCD screen and go again to line 96 of the /src/main.c to change the code to this :
/* Initialize all configured peripherals */ MX_GPIO_Init(); /* USER CODE BEGIN 2 */ Luos_Init(); Lcd_Init(); Servo_Init(); Gate_Init(); Pipe_Init(); BiometricSecurity_Init();/* Button_Init(); Fingerprint_Init(); Led_Init(); */ /* USER CODE END 2 */ /* Infinite loop */ /* USER CODE BEGIN WHILE */ while (1) { /* USER CODE END WHILE */ /* USER CODE BEGIN 3 */ Luos_Loop(); Servo_Loop(); Lcd_Loop(); Gate_Loop(); Pipe_Loop(); BiometricSecurity_Loop(); /* Button_Loop(); Fingerprint_Loop(); Led_Loop(); */ } /* USER CODE END 3 */ }
Now you can clean it, build it and upload it to your board.
Final Product !
Now you can plug both boards, push the reset button on the one with the LCD and it should work right away !
Here is a demo of it working :
coming soon...
Want a Clean Prototype ?
If you want to create a 3D printed box like this one to protect your system go check this out :
https://www.instructables.com/Turn-Your-Messy-Luos-Biometric-Security-System-Int/
YouTube Video
I also made a tutorial on YouTube where I explain Luos a little bit more and show how to make this biometric security system on an Arduino Zero, then on two Nucleo L432KC and then on one of each. Go check it out :
coming soon...