Example: Testing LM335 - hgdeoro/py-arduino-proxy GitHub Wiki

PyArduinoProxy now is py-arduino

PyArduinoProxy now is py-arduino

I've renamed the project to py-arduino, please check it out at:

https://github.com/hgdeoro/py-arduino

I didn't like the 'proxy' word in its name, and made big changes, including:

  • refactored low level code to the new py_arduino package
  • refactores web application stuff to py_arduino_web package
  • add multiprocess support + background tasks, aka: concurrent access (thanks to uWSGI + PyRO)
  • labeling of pins and restricted acces from web (administrable using Django)
  • cleaned up old code (like old examples) and an updated README

Old content

Example: Testing LM335

Circuit diagram

example-lm335_bb.png

Screenshots and code

##Quickly testing a LM335

Check the value returned by analogRead().

example-lm335-0.png

Transform the value to a voltage.

example-lm335-1.png

Transform the voltage to kelvin degrees.

example-lm335-2.png

Transform the kelvin degrees to celsius degrees.

example-lm335-3.png

Now, add a second sensor, connected to the analog port 2. Source code example-lm335-4.png

A better way: using a function!

Source code example-lm335-5.png