Skip to content

Unlocking and locking solenoid lock in android phone powered by react native and aws iot.

Notifications You must be signed in to change notification settings

kd-s-t/react-native-aws-iot-raspberry-pi-4

Repository files navigation

React Native - AWS IoT - Raspberry Pi 4

Development time: react 16.13.1 react-native: 0.63.4

Usage

git clone https://github.com/ollolollollooloo/react-native-aws-iot-raspberry-pi-4.git
cd react-native-aws-iot-raspberry-pi-4
vim .env

add this in .env:

REACT_APP_IDENTITY_POOL_ID=ph-manila-2:*****-*****-*****-*****-*****  
REACT_APP_REGION=ph-manila-2  
REACT_APP_USER_POOL_ID=ph-manila-2_*****  
REACT_APP_USER_POOL_WEB_CLIENT_ID=*************************  
REACT_APP_MQTT_ID=*****-ats  

yarn install
yarn add aws-amplify
npx react-native run-android

UI

Gallery

https://github.com/ollolollollooloo/react-native-aws-iot-raspberry-pi-4/tree/main/gallery

In React Native

I run this program in Windows 10 and Android Studio
Using Amplify
Publish to Channel
Learn more: https://youtu.be/EfbRKaPt2S4

In AWS

I setup IoT thing, IAM role, Cognito User Pool, Cognito Identity Pool and Amplify
Learn more: https://youtu.be/p8Vb9l2dW6Q

In Raspberry Pi 4

Solenoid Lock-style 12v
Module Relay
12v plug
Using Python library provided by Amazon
Subscribe to Channel
Learn more: https://youtu.be/917QGloMW0o

Youtube Tutorial

Setup this repo by following this tutorial
https://youtu.be/QPBwH_MwWWA

About

Unlocking and locking solenoid lock in android phone powered by react native and aws iot.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published