Editing
Analog EEG Amp
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==ADC Conversion== Currently we have slapped an arduino on there and we're just sampling from the analog pins. [https://www.dropbox.com/sh/c6qnar0cp08037h/FXpIgCWwqN/nb_eeg_amp Here's a Dropbox folder] with the code and CSVs of time-stamped output values. I started setting up a [github repo] but I'm not using it yet. Soon I swear. Here's the current code (AnalogRead2 sketch in the dropbox folder): void setup() { Serial.begin(9600); } void loop() { unsigned long micro = micros(); int zero = analogRead(0); int one = analogRead(1); int two = analogRead(2); String res = String(micro) + ",0," + String(zero) + "," + String(one) + ","+ String(two) + ","; Serial.println(res); delay(1); } And sample output: 40704624,0,0,0,0, 40724928,0,51,113,90, 40749472,0,0,42,7, 40770836,0,0,0,5, 40791128,0,59,114,85, 40815672,0,0,46,10, 40838080,0,0,0,0, 40858376,0,51,105,106, 40883972,0,0,0,12, 40905328,0,0,0,12, ... I have graphed raw output (no timestamps) in the past and plotted it and it looked like the absolute value of a sine wave (we're looking for the 60hz [http://en.wikipedia.org/wiki/Utility_frequency line noise] as a basic test) but now that I'm trying it again it looks more like the negative values are getting zeroed. I will parse and plot the timestamped data soon and post the results of that. --[[User:Hurtstotouchfire|Hurtstotouchfire]] 02:51, 12 May 2012 (UTC)
Summary:
Please note that all contributions to Noisebridge are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
Noisebridge:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Request account
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Dig in!
Noisebridge
- Status: MOVED
- Donate
- ABOUT
- Accessibility
- Vision
- Blog
Manual
MANUAL
Visitors
Participation
Community Standards
Channels
Operations
Events
EVENTS
Guilds
GUILDS
- Meta
- Electronics
- Fabrication
- Games
- Music
- Library
- Neuro
- Philosophy
- Funding
- Art
- Crypto
- Documentation/Wiki
Wiki
Recent Changes
Random Page
Help
Categories
(Edit)
Tools
What links here
Related changes
Special pages
Page information