News for hackers. Stuff that matters.
Re:Chip Hall of Fame: Atmel ATmega8 by mschuster91 on Tuesday October 31, 2017 @08:05AM (#15592579)
Out of curiosity: what features did that fumes extractor have?! Mine has just a plain old switch to control the fan in 2 speed modes, and another switch to control the light...
Re:Chip Hall of Fame: Atmel ATmega8 by lmilcin on Tuesday October 31, 2017 @08:16AM (#15592631)
3 speed modes, light, and some diode indicators.

Previously there would be one switch to control light, 3 switches to control speed modes and extra switch that I don't exactly know what it did -- probably it controlled some kind of timer.

The 3 switches that controlled modes were 0/1 (change speed to 1 if anything else than 1, turn off if it is currently 1), and 2 and 3 which would turn on 2 and 3 speed mode.

I have added a 500ms long press to 0/1 switch which means that whatever is happening it turns off both light and fan at the same time. You don't have to turn off light and fan separately and you don't have to press 0/1 twice to reduce the speed to 1 and then to turn it off.

As it was sometimes difficult to figure out which speed it was on without looking at the indicators (on the side and not on the front of the extractor) you never knew you had to press it once or twice which was quite irritating.

Re:Chip Hall of Fame: Atmel ATmega8 by nerfhammer on Tuesday October 31, 2017 @01:50PM (#15595071)
now, add a motion sensor so the light comes on when you stand near it and a smoke sensor so that it turns on automatically when you start cooking and stops automatically when all the smoke is clear.
Re:Chip Hall of Fame: Atmel ATmega8 by lmilcin on Tuesday October 31, 2017 @02:37PM (#15595471)
The object was to place a new chip into an already existing PCB and then program it to work with the existing parts, switches, and so on.
Re:Chip Hall of Fame: Atmel ATmega8 by retSava on Tuesday October 31, 2017 @08:10AM (#15592606)
I guess the microcontroller controls a fan using PWM with a duty cycle depending on the mode. Even if you could do it with a 555, it's easier to just do it with a microcontroller. It also makes it easier to make changes up until production without changing hardware.
Re:Chip Hall of Fame: Atmel ATmega8 by lmilcin on Tuesday October 31, 2017 @08:21AM (#15592656)
No, it controlled it through a Darlington array controlling an array of mechanical relays. The fan has 3 220V AC inputs and selecting the combination of inputs changes the fan speed.

I haven't looked inside the fan because it worked correctly. I also didn't want to test it to see how it works so I figured it out by analyzing the PCB. Actually that was quite good idea because the relays seem to be connected in such a way as to only allow valid combination to be sent to the fan even in case of invalid input from the microcontroller.

I suspect bad things would happen if I sent incorrect inputs to the fan -- looking at how crappy the board was but at the same time that the person put effort into placing the relays to explicitly disallow invalid combinations of power lines to the fan.