4

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 ...


3

The additional 80uA drain is almost certainly coming from the pull-up resistor being shunted to ground though the reed switch. https://www.wolframalpha.com/input/?i=(3+volts)+%2F(50k+ohm)+in+uA 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 ...


2

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 avrdude. 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 ...


2

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 ...


1

#define F_CPU 1200000UL #define LED PB2 // PB2 #define BUTTON1 PB1 // INT0 #define BUTTON0 PB0 // PCINT0 #define HIGH 1 #define LOW 0 #define INPUT 0 #define OUTPUT 1 #define INPUT_PULLUP 2 #define FALSE 0 #define TRUE 1 #define _BV(bit) (1 << (bit)) #include <avr/io.h> #include <avr/...


1

The mapping can be found in the io.h file but also in Arduino core files. Below is the pin mapping: ATtinyX4 +----U----+ (VCC)-------------1-|VCC GND|-14------------(GND) (D10)-------------2-|PB0 PA0|-13----------(D0/A0) (D9)--------------3-|PB1 PA1|-12----------(D1/A1) (/RESET)----------4-|PB3 ...


1

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 capacitor. 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 ...


1

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 ...


1

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 ...


1

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.


1

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.


Only top voted, non community-wiki answers of a minimum length are eligible