Skip to content

Example: Testing LM335

Horacio G. de Oro edited this page Jun 28, 2013 · 6 revisions

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

Screenshots and code

##Quickly testing a LM335

Check the value returned by analogRead().

Transform the value to a voltage.

Transform the voltage to kelvin degrees.

Transform the kelvin degrees to celsius degrees.

Now, add a second sensor, connected to the analog port 2. Source code

A better way: using a function!

Source code

Clone this wiki locally