Yes, you can go above VRef.
Voltage on any Pin except RESET
with respect to Ground ................................-0.5V to VCC+0.5
And as the ADC reference says anything above VREF will give you the maximum value (it will saturate).
So powered from 5V you can apply anything from -0.5V to +5.5V safely. That's basically the supply voltage plus one ...
The additional 80uA drain is almost certainly coming from the pull-up resistor being shunted to ground though the reed switch.
As suggested by @Edgar Bonet, one way to greatly reduce this drain is to disable the pull-up immediately when you wake from the pin going low. At this point it is ...
Your computer cannot talk directly to the ATtiny. You need some piece of
interfacing hardware between them. This is called an ICSP (or ISP)
programmer. You also need software to drive the programmer, typically
If you do not have a programmer, you can buy one (I had success with
some very cheap USBASPs), or you can program an Arduino Uno to behave
You can easily add entries for the ATTiny13 to the IDE, but won't show in the same listing as damelis's ATTiny cores, as he hasn't added the ATTiny13 yet.
Here is what I have found for ATTiny13 Arduino core files, working with boards.txt, loading them into the IDE, etc. The boards.txt is all laid out, just drop it into your personal workspace per the ...
The mapping can be found in the io.h file but also in Arduino core files.
Below is the pin mapping:
In this article the following steps are used when using an LED as a light detector:
Light up the LED by making the anode positive (logic one) and the
cathode negative (logic zero) - this fully discharges the LED as a
Charge up the capacitor by making the anode negative and the cathode
positive, as this is a small capacitor it will take no time at ...
cant understand how to program it for such purpose so please help me out
it is fairly easy to approach such questions:
1) you can program any?
2) can you program this mcu to blink an led?
3) can you program this mcu to do short time counting?
4) can you program this mcu to do long time counting?
what you help helps you the most depends on your answers ...
I'm tempted to suggest two reed switches (one NO and the other NC). Then depending on the window state you change to use the switch which gives you the lowest drain (you could use a spare couple of pins to activate one or the other).
Failing that, you can just sleep when the switch is open (the low-power condition) and if it is closed use the watchdog timer ...
this is the official Arduino IDE 1.5 3rd party Hardware specification. It is still valid for 1.6.
It is probably lots easier to just copy past a similar board; rename the board ID and try.
Note that for a change in the boards.txt to be seen in the Arduino IDE you need to stop and start the Arduino IDE.
The serial input is read into a variable.
You could comment out the serial read and assign whatever value you need directly to the variable. By commenting out the serial read, you will have a marker of where you made the changes.
This should work since you are saying the inputs are known and do not change.