Data Acquisition Real Time Visualization
This is a new sub-project for the future version of Touchscreen Control (2.0). I wont reveal much details about this right now, suffice to say once I have all the components I will start on bringing everything together for testing phase
Setup
After playing with real time audio conversion/visualization in my Digital DI Box project I shifted the focus to slower sampling rate in order to be able to keep up with changing data. USB FTDI drivers are not suitable for 2Mbs continuous data flow and I am not ready yet to write my own USB driver. Instead I decided to use a simpler MC (PIC16F1827) with a reasonable amount of ADC channels to see if web interface is ready for moderate amount of data. I set sampling rate at 100ms, starting with one ADC channel and slowly moving to 5 channels (there will be more, I just ran out of sensors). Right now I get the following info:- Potentiometer
- Potentiometer (inverse)
- Magnetic sensor
- Photo cell
- Temeprature sensor
There was a vibration sensor, but it requires amplification and my opamps need dual power supply. The breadboard is already full and there is not much room for virtual ground and the whole bunch of additional wires.
Results
The web interface was able to produce some nice looking real life graphs. Unfortunately I killed the photo cell - it's sensitivity has dropped a lot after some miswiring. Otherwise the system is doing great. Next step will be to test the timing by gradually reducing the sampling period in order to capture finer detail (as you can see on the screenshot below the mangetometer - black line - is not very smooth when displaying slowly rotating magnetic flux).
No comments:
Post a Comment