- Components:
- Buzzer
- Setup a basic sketch, buzzing
- Decide on active vs. passive [passive for now]
- Decide on the best frequency it the buzzer is inside the case [maybe 1k, doesn't seem to matter]
- Potentiometer
- Set up a basic sketch, read the values
- Try reading in increases as a system interrupt
- Button
- Set up a basic sketch, digital read the input
- Try the input as a system interrupt
- Servo
- Set up a basic sketch, just get it to turn
- Set up a method to turn 90 degrees
- Detecting rapid change
- Decide on a structure for holding data [linked list is best, but array will be faster]
- Calculate the averages every cycle? (10sec & 2sec?)
- Buzzer
- Combine components:
- If the fake heart rate is over a threshold set off the buzzer
- If the buzzer is going off and the button is pressed cancel the injection
- Button abort example:
- Press button to activate -> wait 1 second -> press button to deactivate
- Press button to activate -> wait 2 seconds -> inject
- Heart rate example:
- Show 'heartbeat'
- Show rolling averages
- If the short term is too high, audio warning
- Inject
- Cleanup:
- Replace the array logic with a LinkedList
- Add handling for millis overflow at 50 days
- Housekeeping:
- Add a description to this repo
autoinjector's Introduction
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.