Showing posts with label hardware. Show all posts
Showing posts with label hardware. Show all posts

Tuesday, 24 October 2017

Data Aquisition Real Time Visualisation

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).

Sunday, 17 September 2017

Power control - Hardware

Power control - Hardware

System overview

The power control unit consists of 6 relays connected to an ATMega8 MCU. The main (lower) board is self sufficient and contains all necessary parts for proper function.

The top board serves as an easy indicator of the relay state. It plugs to the header pins on the bottom PCB.

Power control in action

The system can be connected to any AC circuit (limited by relay characteristics - usually up to 10A/400V AC). In the picture below the system is connected to the modified power board, serving individual 4 outlets (out of possible 6). The power control gets signal from computer or similar control device via RJ45 cable.

With the top board connected to the main unit it is possible to see which relays are operational at any moment. Red LED means that relay is conducting and green LED means that relay is not conducting (Unsafe/Safe).

Is low level programming still relevant these days?

The levels of abstraction have made the application programming much easier and faster. But everything comes at a price. This is a new ...