Difference between revisions of "Arduino"

From Wiki2
Line 43: Line 43:
::[http://www.craig.copperleife.com/tech/thermo/ Craig's thermostat circuits]
::[http://www.craig.copperleife.com/tech/thermo/ Craig's thermostat circuits]
::[http://www.nateful.com/differduino/differduino.html Solar differential controller (diffarduino)]
::[http://www.nateful.com/differduino/differduino.html Solar differential controller (diffarduino)]
==parts==
===needed parts (next order)===
*thermistors
*5K and 10K POTS
===atmel 328 $5.50 arduino===
ATmega328 with Arduino Optiboot (Uno)DEV-10524 Description: The name says it all on this one. An ATmega328 in DIP package, pre-loaded with the Arduino Optiboot (Uno 16MHz) Bootloader. This will allow you to use Arduino code in your custom embedded project without having to use an actual Arduino board. To get this chip working with Arduino IDE, you will need an external 16MHz crystal or resonator
===[http://www.maximintegrated.com/datasheet/index.mvp/id/2735 DS1620 Digital Thermometer and Thermostat]===
In a [http://www.rentron.com/project01.htm thermostat circuit]
===DS18B20 Dallas 1-wire temperature sensors===
::[http://www.practicalarduino.com/projects/online-thermometer online thermometer]
===[https://www.sparkfun.com/products/10168 Graphic LCD 84x48 - Nokia 5110]===
::[https://www.sparkfun.com/products/10168 Graphic LCD 84x48 - Nokia 5110] runs on 3.3v so you have to [http://www.sparkfun.com/tutorials/65 interface] carefully
===KTM-S1201 lcd module===
::http://arduino.cc/forum/index.php/topic,22098.0.html
===DK-duino DKUNO Atmega328p-20PU USB Board===
http://i1017.photobucket.com/albums/af297/oldbanian/cegoot001.jpg
Descriptions
Compatible with [http://www.arduino.cc/en/Main/ArduinoBoardDuemilanove Arduino duemilanove 2009]
Microcontroller: ATmega328P-PU
USB to RS232 Controller: PL2303HX
I/O compatible with Arduino UNO R3
Operating Voltage (logic level) : 5V
Input Voltage (recommended) : 7.2-11.1V
Input Voltage (limits) : 6-20V
Package Content
1*DK-duino DKUNO Atmega328p-20PU USB Board
1* USB 2.0 cable
===Ethernet Shield With Wiznet W5100 Ethernet Chip ===
( latest version )
Compatible Duemilanove (168/328) / Mega (1280/2560) / UNO
https://s3.amazonaws.com/mckenna.tim/pages/winnet.jpg
Product Description
      This is the latest version  of the Ethernet Shield. This Arduino Ethernet Shield which is based on the Wiznet W5100 Ethernet Chip gives you an easy way to get your Arduino Online. It is directly supported by Arduino official Ethernet Library. It adds a micro-SD card slot, which can be used to store files for serving over the network. It is compatible with the Arduino Duemilanove (168 or 328), Uno as well as Mega (1280/2560) and can be accessed using the SD library.
The Wiznet W5100 provides a network (IP) stack capable of both TCP and UDP. It supports up to four simultaneous socket connections. Use the Ethernet library to write sketches which connect to the internet using the shield.

Revision as of 21:48, 2 January 2013

electronics

control narratives

pond pumps

Pick up my phone, go to a web site, have there be a series of buttons on, off, 10, 20, 30, 60.

The buttons could be from a client side jquery-mobile page. Timing would seem suited to the server. Server would send an on message and start a timer. After the time elapsed it would send an off message. Client would poll server to see what the status is and the time remaining.

version 1

Click the button pump goes on in pond.

  • send '1' to arduino, to tun on relay
  • send '0' to arduino to turn off device

Arduino-Ethernet-Shield-Tutorial

heating system

version 2
set up a chrontab file that does something ✓
in php execute-root-commands-via-php
create a crontab file
install it
write a php file that PUTS some light on on the AVR
collect data from AVR and store it in mysql
view the saved data on a client using javascript
version 1
Take random readings from analog pins start an etehrnet client that sends them out to http://cosm.com every ten seconds

final narrative

An Avr takes in temperature readings from multiple locations. At the control room the AVR hub polls temperature and for each zone knows the set temperature, the default temperature and whether or not a zone is ON and how long it has been on. If it doesn't hear from the (linux) scheduler then it falls back to act as a multi-zone thermostat set at the default temperatures. Through a rudimentary display it would allow you to set temperatures for each zone.

The scheduler would take temperature data from the AVR client and would know the schedule. Whenever a schedule change point would come up, it would notify the AVR and instruct it to change the set point. It would do this via chrontab maybe.

The controller would on the client probably an HTML5/javascript client. Here you can read the temperatures and view the schedule. You can override or change the schedule.

possible routes

A cheap circuit like http://www.craig.copperleife.com/tech/thermo/ or more complicated http://www.rentron.com/project01.htm using http://datasheets.maximintegrated.com/en/ds/DS1620.pdf which can be overridden by server program that controls multiple thermostats.

ReST

http://rest.elkstein.org/2008/02/using-rest-in-php.html
http://blog.garethj.com/2009/02/17/building-a-restful-web-application-with-php/

Cron Jobs

http://net.tutsplus.com/tutorials/php/managing-cron-jobs-with-php-2/
http://stackoverflow.com/questions/4421020/use-php-to-create-edit-and-delete-crontab-jobs

schematics, circuits, projects

collection of schematics
Craig's thermostat circuits
Solar differential controller (diffarduino)