Show Posts
Pages: 1 ... 22 23 [24] 25 26 ... 72
346  Using Arduino / Microcontrollers / Re: Attinys frying on: June 30, 2013, 05:27:02 am
I would suggest a 10 kohm resistor from reset to VCC, and a 100nF capacitor from VCC to Grnd.

Without the resistor, the Attiny could be auto-restting.
347  Using Arduino / Microcontrollers / Re: Attiny 84/85 serial comm on: June 27, 2013, 02:01:53 pm
Quote
- only the ports mentioned in Interactive_to_Serial_with_Details sketch could be used or can I use different ports?

If you mean pin numbers, they can be changed - but why?

Quote
- if I have to add the OSCCAL = 0xAD to a sketch which are the needed includes?

In Setup() , see the example below

Quote
- what command to use to get data from serial port

In this example pin 4 is the receiving pin, and pin 3 the transmitting pin

Code:
#include <SoftwareSerial.h>

SoftwareSerial mySerial(4, 3); // RX, TX

void setup()  
{
  OSCCAL = 0x59; //ATiny85
  mySerial.begin(9600);
  mySerial.println("Hello, world?");
}

void loop()
{
  if (mySerial.available()){
    mySerial.println(mySerial.read());
  }
}
348  Using Arduino / General Electronics / Re: Turn your Arduino into a capacitor tester ... on: June 27, 2013, 09:39:09 am
With a 22pF capacitor I get

Capacitance = 0.05 nF

But then I discovered that without a capacitor I get: Capacitance = 0.02 nF

So the capacitans of the circuit itself is 0.02nF, thus the reading could be interpreted as 0.03 nF ? which is close.

Edit:

So I tried multiplying the result with 1.000 and subtracting the capacitans of the circuit I get with a 22 pF capacitor
Capacitance = 23.72 pF
Capacitance = 25.85 pF
Capacitance = 26.34 pF
Capacitance = 23.64 pF

And 2 x 22pF in parallel:
Capacitance = 48.66 pF
Capacitance = 50.91 pF
Capacitance = 48.44 pF
Capacitance = 48.19 pF



349  Using Arduino / General Electronics / Re: Turn your Arduino into a capacitor tester ... on: June 27, 2013, 09:13:17 am
Quote
Unfortunately a 100 nF capacitor seems to give a high reading:

I just tried your sketch with 3 different 100nF capacitors:

Capacitance = 108.81 nF

Capacitance = 98.34 nF

Capacitance = 101.14 nF

and a 10nF

Capacitance = 10.96 nF

So well within the rating (I don't know if it is 10% or 20%)

I also tried with a 10 M ohm resistor, I was hoping to be able to read even smaller capacitors like 22pF, but no luck.



350  Using Arduino / Programming Questions / Re: Is there a library on: June 27, 2013, 05:03:51 am
This seems to work?

http://forum.arduino.cc/index.php?topic=124457.0

Update:

I got curious and tried it out, and it works as it should on a ATtiny85
351  Using Arduino / Microcontrollers / Re: Analogread on Attiny85 on: June 26, 2013, 02:30:40 pm
The pin numbers are different for the different cores.

If you use this core
https://code.google.com/p/arduino-tiny/

then A2 is pin PB4
352  Using Arduino / Sensors / Re: RF Transmitter and Receiver using attiny85 on: June 26, 2013, 02:23:53 pm
Maybe this will help

http://forum.arduino.cc/index.php?topic=149928.0
353  Using Arduino / Microcontrollers / Re: Tiny Core 2 + ATtiny861 on: June 26, 2013, 06:56:19 am
Using Tiny Tuner v2 on a ATTiny13 @1.2MHz

I deleted most of the debugging text which gives a sketch size: 986 bytes
The tuned frequence was 1.194 MHz !

Quote
I even have an EEPROM address range in mind for configuration data.  If you're interested just let me know.
I am interested

Besides the other improvements of TinyTuner you mention, I think the biggest advantage is that it can be used with TinyDebugKnockBang.
No more fidling with Serial/USB converter and wiring.

Once again Thankyou for maintaining and improving the Tiny core
354  Using Arduino / Microcontrollers / Re: Tiny Core 2 + ATtiny861 on: June 24, 2013, 04:52:17 pm
Quote
So, TinyDebugKnockBang remains a library.

That's good news, thankyou.

I did an experiment with a Attin85 @ 8MHz and TinyTuner2

First I tuned it with the "old" TinyTuner, and then with TinyTuner2

Both gave the same OSCALL values, and the tuned frequence was approx. 8,02 MHz

Next I will try Attiny13, it is a tight fit, but deleting some of the debug text should do it.
355  Using Arduino / Microcontrollers / Re: Tiny Core 2 + ATtiny861 on: June 22, 2013, 04:39:52 pm
I like the flexibilty of a library.
I have used it with other cores for example attiny13 and Atmega8 and Atmega328.
356  Using Arduino / Microcontrollers / Re: Tiny Core 2 + ATtiny861 on: June 22, 2013, 06:13:36 am
Quote
what's TinyISP?

It is a replacement for ArduinoISP.
One of the great features is that it use the MISO line to communicate, so you don't have to use a Serial/USB converter every time you want to have debugging output

http://forum.arduino.cc/index.php?topic=123388.30

There are several options, but the TinyTuner2 example use TinyKnockBang, see  reply #37

Here is an overview

http://www.ernstc.dk/arduino/tinycom.html
357  Using Arduino / Microcontrollers / Re: Tiny Core 2 + ATtiny861 on: June 22, 2013, 05:53:33 am
With the above mentioned correction to TinyKnockBang.h

I got TinyTuner2 running.

Running t861 @1MHz I got this result :

Code:
// Initial value of OSCCAL is 0x9F;

  // Add the following line of code to the top of setup...
  OSCCAL = 0x

Edit:
After remembering to connect the tune pin to XTAL2, I get:

Code:

  // Initial value of OSCCAL is 0x9F;


  // Add the following line of code to the top of setup...
  OSCCAL = 0x9B;


358  Using Arduino / Microcontrollers / Re: Tiny Core 2 + ATtiny861 on: June 22, 2013, 04:42:36 am

I think you have to ammend the t861 In TinyKnockBang.h

line 42

Code:
#if defined( __AVR_ATtiny13__ ) || defined( __AVR_ATtiny25__ ) || defined( __AVR_ATtiny45__ ) || defined( __AVR_ATtiny85__ )|| defined( __AVR_ATtiny861__ )
359  Using Arduino / Microcontrollers / Re: Arduino Tiny on: June 20, 2013, 06:32:05 am
I am using TinyISP with no problem to read fuses and program the chip.

My attiny861A came with theese fuses:

lfuse: 62
hfuse: DF
efuse: 1

I have bought it on E.Bay but I) assume that this is the factory default setting.
Ok I can see it is the same as Hiduino
360  Using Arduino / Programming Questions / Re: Reading a HEX file. on: June 20, 2013, 03:23:11 am
Or upload the HEX to your new UNO
Pages: 1 ... 22 23 [24] 25 26 ... 72