Show Posts
Pages: 1 ... 22 23 [24] 25 26 ... 70
346  Using Arduino / General Electronics / Re: clock x-tal vs. other x-tals on: May 27, 2013, 04:13:45 pm
I used
low D6
high D7
Extended FF

347  Using Arduino / General Electronics / Re: clock x-tal vs. other x-tals on: May 27, 2013, 02:16:22 pm
Quote
That would work fine as the timer will run independently of the CPU and would do just as good a job as an RTC.

Thanks Tom, that was the answer I was hoping for.
I just gave it a try, but something went wrong, the t85 became unresponsive, and I had to use a HV programmer to bring it back to life.
Anyway I wil try again, maybe I burned wrong fuses.
348  Using Arduino / General Electronics / Re: clock x-tal vs. other x-tals on: May 27, 2013, 12:16:33 pm
Thanks

@pito
So you are saying that it is not the x-tal, but the surrounding electronics that makes a RTC more precise than a ATtiny85 with a clock x-tal ?

@CrossRoads
Yes I have a programmer, I use TinyISP as it has an option for programming mcu's with slow clock.


349  Using Arduino / General Electronics / clock x-tal vs. other x-tals on: May 27, 2013, 10:13:16 am
I just disassembled an electric clock, and found a clock crystal inside, I presume it is 32768kHz

That made me wonder:
Why are clock x-tals always this frequence, or are they ?
Are they generally more precise than for example a 16mHz x-tal, or is it the lower frequence that make them more precise.
By looking around I can see the precission for clock x-tals are 10-15 ppm (which as far as I have seen is parts per million)

So I was wandering: if I used my clock crystal on a ATTiny85 I might get a DIY RTC?
350  Using Arduino / Microcontrollers / Re: Getting OneWire and DallasTemperature to work with ATtiny core on: May 26, 2013, 12:20:36 pm
Maybe this fix for sketches > 4kb could help?

https://github.com/TCWORLD/ATTinyCore/tree/master/PCREL%20Patch%20for%20GCC
351  Development / Other Software Development / Re: Sleep mode demo code on: May 22, 2013, 11:20:04 am
Quote
But it should wake as soon as the pin is driven low, toggling it (low then high) should not be necessary.
That was  my poor english, I am actually connecting pin PB1 to ground via a pushbutton

Quote
I see in the datasheet that INT0 is PB1 (DIP pin 6)
Yes I see it now, I was looking at PCINT0  smiley-red

Quote
Are you using the Arduino-Tiny core with the '13?

No, I am using Smeezekitty's core. As far as I know  the Arduino-Tiny core does not support ATtiny13.
I suppose you mean this core: https://code.google.com/p/arduino-tiny/

Smeezekitty's core:
http://forum.arduino.cc/index.php?topic=89781.0
352  Development / Other Software Development / Re: Sleep mode demo code on: May 22, 2013, 06:26:40 am
Just tested your sleep_ATtinyX5.ino on a ATtiny13.

It worked wothout any changes !
I can't even measure the current when it is in sleep (cheap multimeter)

One thing that is strange:
I have to toggle pin PB1, which according to the datasheet is PCINT1 and not PB0 which is PCINT0

Thanks for sharing
353  Using Arduino / Programming Questions / Re: "Serial was not declared in this scope" and other ATtiny85 problem on: May 22, 2013, 04:17:03 am
Example using TinyDebugSerial and Coding Badly's core
Output on pin PB3

Code:
void setup() {
Serial.begin(9600);
}

void loop() {
  Serial.println("Testing..");
}

Example using SoftwareSerial

Code:
#include <SoftwareSerial.h>
const int rx=3;
const int tx=4;

SoftwareSerial mySerial(rx,tx);

void setup()
{
mySerial.begin(9600);
}

void loop() {
  if (mySerial.available()) {
    char data = mySerial.read();
    mySerial.write(data);
  }
}

Example using TinyDebugKnockBang

Code:
#include <TinyDebugKnockBang.h>

void setup( )
{
Debug.begin( 250000 );
}

void loop( )
{
Debug.println("Test knock-bang");
delay( 1000 );
}
354  Using Arduino / Microcontrollers / Re: ATtiny45 Ir codes not sending correct on: May 21, 2013, 05:18:52 pm
Glad you got it working.

I will forward the Thanks to Coding Badly for his excellent core

BTW I have tried the receiver code from the library. It works when used with the tx part of the library.
With one of my remote controllers there are problems, but that might be because it use another protocol.
355  Using Arduino / Microcontrollers / Re: TinyISP/attiny + CP2102 usb to uart bridge on: May 21, 2013, 10:31:28 am
To obtain a more reliable connection when using SoftwareSerial, you can
tune the internal oscillator:

http://forum.arduino.cc/index.php/topic,8553.0.html
356  Using Arduino / Microcontrollers / Re: ATtiny45 Ir codes not sending correct on: May 21, 2013, 09:37:19 am
Seems to me you maybe have a timing problem.

It is strange that it works on my setup.

I am using this core:
https://code.google.com/p/arduino-tiny/

Which core are you using?
357  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: May 20, 2013, 08:37:58 am
That seems to do the trick.
Using the new wiring.h I get theese result, when using analogReference(INTERNAL);
and 0,53V on ADC(2)


Quote
EEPROM (0)= 127
EEPROM (1)= 23
513
EEPROM (0)= 127
EEPROM (1)= 23
513
EEPROM (0)= 127
EEPROM (1)= 23


358  Using Arduino / Microcontrollers / Re: Attiny 84/85 serial comm on: May 20, 2013, 08:11:39 am
Quote
is Tiny Isp software or hardware?

It is software, it is a  a sketch, just like the normal ArduinoISP you have in your example menu in the Arduino IDE

If you want to program an ATtiny you need a programmer.
It can be a Arduino with the ArduinoISP, or TinyISp
or any other programmer like USBAsp, Pololu programmer and so on

If you want the debug output in your Serial monitor, you can use a USB/Serial converter, and you can use your Arduino as such.

If you want both of the above (like you are used to from Arduino), you can use Arduino (hardware) with the TinyISP sketch (software) loaded, and the KnockBang sketch (software) on yor Attiny.
You connect it  like this

http://www.ernstc.dk/arduino/attiny85.html
359  Using Arduino / Microcontrollers / Re: Attiny 84/85 serial comm on: May 19, 2013, 04:55:35 pm
You could start with this:

http://www.ernstc.dk/arduino/tinycom.html

It is based on this core:

http://code.google.com/p/arduino-tiny/
360  Using Arduino / Programming Questions / Re: Error with ATtiny85 and servo on: May 19, 2013, 06:01:57 am
I'm afraid I don't understand the question.

Quote
I am uploading to the attiny85, but it doesn't seem to upload.

Where are the tiny placed when not uploading?
Pages: 1 ... 22 23 [24] 25 26 ... 70