measure something: add a sensor to a micro-controller board that you have designed and read it
Sense your surroundings from the physical environment to digital data, this is a great week were you bridge the physical world with the digital one. The world of Sensors
Sensors:
I have a couple of sensor boards I would like to make. The Step and Temperature are the main ones I am going to focus on.
Step:
So I started Designing the Step board and I based my Design on the Matt Blackshaw
Which in the end turned out to be a mistake since the way he programs it and then makes the User Interface is quite complicated. After Searching around I found out I wasn't the only one having problems on programming.
After Designing the board in the Eagle, Milling and stuffing it the board looked like this.
So the process of programming the board was as follows using Ubuntu:
Use the Makefile to Burn the Program into the boards Microcontroller :
sudo make - f "name of makefile.make" program-usbtiny
While trying to start the interface of the board it kept giving me errors of libraries not installed so I started by Installing them and the missing software:
Software
Install PySerial
sudo apt-get install python-serial
Install pip2 or 3 depending on your Python installed
apt-get -y install python-pip
and check version
pip -V <
Node.js :
sudo apt-get install nodejs
Libraries:
ExpressJS (You should install it the directory of your .js files ):
npm install express --save
Socket.io (You should install it the directory of your .js files ):
sudo npm install socket.io
After Installing all of this I managed to solve most of the problems and I tried running the server using Node.js but it still had and error it terms of functions called. After Studying the java script I found out
that some of the functions used were outdated for the New Node.js versions. To make it work I have to change this functions in all the files maybe when I have th time I'll come back to this project.
Temperature:
The Temperature sensor is one I'm gonna need for my final project so I needed to make it.
I had a couple of problems also installing the board again mainly because I didn't have the libraries installed.
Tkinter