Show Posts
Pages: [1] 2 3 ... 12
1  Using Arduino / General Electronics / Re: fading 240v lights in vivarium (Safe method) on: August 27, 2014, 02:35:58 pm
thank you, thank you thank you!

now i have a starting point! will let you know how i get along.
2  Using Arduino / General Electronics / Re: fading 240v lights in vivarium (Safe method) on: August 26, 2014, 04:25:32 pm
i have the servos needed. just need to know where to start coding really.

It's not a case of liking the idea, its giving a manual control of the lighting as well as automated control. and the dimmers wont be on the wall, i just mean like the dimmers you'd normally find on your wall.
3  Using Arduino / General Electronics / fading 240v lights in vivarium (Safe method) on: August 26, 2014, 04:02:21 pm
So basically I have a terrarium setup for a snake.

The Electrical setup for the snake includes day glo and night glo bulbs. To simulate a more realistic environment i wanted to be able to fade these bulbs at set times. idea being the following:

745am sunglo bulb begins to fade on
745am nightglo bulb begins to fade off
8am sunglow bulb reaches full on
8am nightglo bulb reaches full off

745pm sunglo bulb begins to fade off
745pm nightglo bulb begins to fade on
8pm sunglo bulb fully off
8pm nightglo bulb fully on


Now i understand the rather sevear dangers with 240v mains power and 5/9/12v home made circuits, and i've also noticed a few threads about here for controlling mains lights for fading but i had another solution that may not look so clean as some solutions but for things like vivariums, terrariums ect this could be an ideal solution but i need help from the awesome community.

Basically, programming an arduino or IC to control 2 servos. These servos are hooked up to dimmer switches you'd put on your wall by a link bar, so as the servo turns, it rotates the dimmer dial.

The help would be programming the servo and an effective clock. I'd much rather just run the servos off the arduino (Uno) rather than program an IC or something. that way i can have it all contained in 3 single back boxes for a cleaner look.

Where would be the starting point for this project? I've looked over the tutorial material for servo control but it makes no sense to me smiley-sad
4  Using Arduino / Programming Questions / Re: Arduino and AtTiny167 on: June 16, 2013, 06:10:29 pm
i honestly have no idea how to follow that, it really confuses me.

i decided to perhaps try a atmega48 but couldn't find the entry to add to the boards file in order to allow me to directly load a sketch into it once i loaded up the arduinoisp sketch to the arduino board.
5  Using Arduino / Programming Questions / Re: Arduino and AtTiny167 on: June 13, 2013, 12:59:28 pm
hey i decided to maybe give a mega168 chip a go instead as its a little more readily available,

the only thing is, im not entirely sure which selection to make from the boards menu to tell the arduino isp sketch which chip its being burnt too,

would it be arduino pro mega168? or do i need a custom entry to boards file?
6  Using Arduino / Programming Questions / Re: Arduino and AtTiny167 on: June 11, 2013, 10:33:57 pm
thank god for pinout diagrams haha.

thank you for that!
7  Using Arduino / Programming Questions / Re: Arduino and AtTiny167 on: June 11, 2013, 10:23:52 pm
thats an 8 pin tiny, the pinout on the 167 is different, the vcc and gnd are in the middle, thats about all i know so far
8  Using Arduino / Programming Questions / Arduino and AtTiny167 on: June 11, 2013, 10:07:11 pm
hi all, can someone tell me which pins from an arduino uno need to connect to an AtTiny167 chip to program it? (the chip)

also, which pins on the 167 are the pwm channels?

basically i need a 12 (or 20) pin rogrammable micro controller with 6 pwm pins that i can program using the arduino board
9  Using Arduino / Programming Questions / Re: arduino uno > AtTiny85 on: May 18, 2013, 06:25:08 am
i set it to 8mhz and used pin o and pin 1 for pwm. then pin 3 and 4 for analogwrite functions
10  Using Arduino / Programming Questions / Re: arduino uno > AtTiny85 on: May 17, 2013, 07:09:47 pm
never mind it was pwm channels messing it up, all fixed and fully working now.

thanks guys
11  Using Arduino / Programming Questions / Re: arduino uno > AtTiny85 on: May 17, 2013, 06:49:18 pm
I got the sketch loaded onto the chip.

But its behaving badly. indicators aren't flashing, the "headlight" keeps going off and not changing brightness as it should, infact the ONLY one thats working right is the rear light led. and even that turns itself off occasionally.

any suggestions?
12  Using Arduino / Programming Questions / Re: arduino uno > AtTiny85 on: May 17, 2013, 05:48:14 pm
but with the chip gnd connected they are all off

Then take a step back and work with a very basic Blink sketch.  Once you have that working, expand it to blink LEDs on all five pins.  If that works, you know the hardware is ready.  Then move on to the Motorcycle Prototype sketch.

As long as you have proper current-limiting resistors on the LEDs, you can leave everything in place during programming.


I've tested the pins with single leds and all the pins work, its just the sketch itself is not running on the chip, I'd really like to keep the sketch i already have rather than try and write a whole new one. so any help would be appreciated
13  Using Arduino / Programming Questions / Re: arduino uno > AtTiny85 on: May 17, 2013, 05:40:33 pm
yeah i found this out by mistake. the chip should be fine, i just dont quite get why my sketch doesn't work on the chip but the "blink" does.
14  Using Arduino / Programming Questions / Re: arduino uno > AtTiny85 on: May 17, 2013, 05:33:44 pm
I just want to shout out and say thank you to you guys for sticking with me on this adventure, im learning an aweful lot so far and i know im not the easiest person to work with, so thank you.
15  Using Arduino / Programming Questions / Re: arduino uno > AtTiny85 on: May 17, 2013, 05:32:18 pm
yes, gnd on the 85 not connected, but the led gnd's and arduino gnd together and the leds turn on, static, not doing anything, very dim.

but with the chip gnd connected they are all off.

led + to resistor to tiny85 pins
led - to tiny85 pin4 gnd

one led per output pin (so 6 in total)

arduino +5v to tiny85 pin8 Vcc
arduino GND to tiny85 pin 4 gnd.
Pages: [1] 2 3 ... 12