Forum Index > Projects > Clock Kits
 Q about freeing up some analog inputs for sensors
 |  Printable Version
By: polossatik (offline) on Thursday, January 21 2010 @ 04:33 PM PST (Read 2171 times)  
polossatik

I'll like to add some kind of photoresitor thingy to the kit to have a automatic brightness control .
Looking to the schematics it seams the only use full I/O pins to be used would be the lines used for the Chronodot (which i have installed).
Seen this is I2C I think about mapping the 2 atmel168 I/o lines (28/27) to 18/19 and use these for the chronodot i/o (seen i don't use the isp header) freeing up 28/27 to read analog stuff.
Besides the obvious changes needed on the software side, any obvious thing that i'm missing that would make this a bad idea?


Forum Apprentice
Apprentice

Status: offline

Registered: 01/21/10
Posts: 9

Profile Email    
   
By: Windell (offline) on Thursday, January 21 2010 @ 05:33 PM PST  
Windell

The Bulbdial clock kit has three communications ports: ISP/SPI, Serial, and TWI/I2C, and there's no harm in getting rid of any of these interfaces if you don't need them.

If you want to add analog inputs, you might consider using an I2C based ADC, such as the MAX1036. There are also SPI based ADCs, like the MCP3202.

If you want to do rewiring, I'd suggest that it's probably easier to move one or two of the GPIO lines, for example C0 and/or C1 than to move the I2C lines. Since C0 and C1 go directly to the resistor locations, you could do this mod without cutting any traces on the circuit board, and then you can still use the hardware-based I2C interface. It would be straightforward to modify the program to treat the SPI port as GPIO to control lines LED2 and LED3.


Windell H. Oskay
drwho(at)evilmadscientist.com
http://www.evilmadscientist.com/

Forum Evil Scientist
Evil Scientist

Status: offline

Registered: 06/15/06
Posts: 1932
Sunnyvale, CA

Profile Email Website  
   
By: polossatik (offline) on Thursday, January 21 2010 @ 11:22 PM PST  
polossatik

thankx,

i'll mess around after my peggy2Le is "up and running" Smile


Forum Apprentice
Apprentice

Status: offline

Registered: 01/21/10
Posts: 9

Profile Email    
   



 All times are PDT. The time is now 10:00 AM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to Post 
Filtered HTML Allowed 
Censored Content 

Evil Mad Scientist Forum Archives — Read only!

Please visit our new forums for new discussions.


DIY Hardware for Electronic Art


The Original Egg-Bot Kit


Octolively
Interactive LED kits


Meggy Jr RGB
LED matrix game
development kit.


Business-card sized
AVR target boards


Peggy 2
LED Pegboard kits

My Account






Lost your password?