Show Posts
Pages: 1 ... 42 43 [44] 45 46 ... 72
646  Using Arduino / Microcontrollers / Re: serial monitor for attiny85 on: January 15, 2013, 11:54:18 am
If you really want to use Arduino as a serial/USB converter you have two options.

1. Remove the processor (very carefully)
2. Connect a jumper wire between Reset and Ground. (and not a capacitor as you have now)
For safety upload an empty sketch (as you have done, and the resitor you have is fine for protecting)

But it is cumbersome as you have probably already figured out.

First you need to connect your ArduinoISP with your ATtiny. When you have finished programming, you must remove the programming wires
 and then connect other wires to use the Arduino as Serial/USB. If you want to make changes you have to start over.

It is incredibly much easier with Coding Badly's TinyISP - no more fiddling/connecting/reconnecting wires.

You just program your attiny let all wires be where they are, and opens serialle monitor to see your debug text

It's a real relief, it makes programming and debugging of ATtiny's as easy as an Arduino
647  Using Arduino / Microcontrollers / Re: Comprehensive ATtiny libraries overview? on: January 15, 2013, 11:07:15 am
I have just tried the new Manchester library mentioned here:

http://mchr3k-arduino.blogspot.dk/2012/02/wireless-sensor-node-part-6.html

It runs flawless on a Attiny85 as TX.

The transmitter is the same as  robitabu use

The receiver:
http://dx.com/p/315mhz-wireless-superregeneration-receiving-module-for-arduino-green-148957?rt=1&p=2&m=2&r=3&k=1&t=1&s=148983&u=148957

648  Using Arduino / Programming Questions / Re: Arduino Micro + Attiny85 on: January 14, 2013, 04:10:42 pm
Quote
Is that your site? It is very clear!

Thankyou  GoForSmoke, yes it is my site
649  Using Arduino / Programming Questions / Re: Arduino Micro + Attiny85 on: January 14, 2013, 03:11:07 pm
I guess the micro is the same as the Leonardo, so maybe takke a look at this:

http://petervanhoyweghen.wordpress.com/2012/09/16/arduinoisp-on-the-leonardo/

With an Arduino Uno the steps are:

http://www.ernstc.dk/arduino/attiny85.html
650  Using Arduino / Microcontrollers / Re: Comprehensive ATtiny libraries overview? on: January 13, 2013, 05:27:58 pm
Regarding the DS18B20 and OneWire, I have succesfully used the example code found here on a Attiny85

http://playground.arduino.cc/Learning/OneWire
651  Using Arduino / Installation & Troubleshooting / Re: Uploading to Uno r3 with serial on: January 12, 2013, 12:09:32 pm

Or you could use one of these cheap USB/Serial converters:

http://www.ebay.com/itm/CP2102-USB-2-0-to-UART-TTL-6PIN-Module-Serial-Converter-/130683943875?pt=LH_DefaultDomain_0&hash=item1e6d5ebbc3
652  Using Arduino / Microcontrollers / Re: stk500_getsync() not in sync resp=0x00 error for arduino uno breadboard on: January 11, 2013, 07:04:35 am
I see, sorry about that.

No, i have never tried to remove the chip, I just connect reset to ground and do a manual reset on the target.

I know the safe way is to upload a empty sketch and use resistors on the tx,rx lines but I must admit that I seldom do that.
653  Using Arduino / Microcontrollers / Re: stk500_getsync() not in sync resp=0x00 error for arduino uno breadboard on: January 11, 2013, 06:17:50 am
Quote
The connection for uploading is just the following:
D0 to D0
D1 to D1

Try swapping these, it should be tx->rx and vica verca



Edited due to bad advice
654  International / Scandinavia / Re: Problem: Serielle porte med Mac on: January 10, 2013, 05:18:20 pm
Det er skam ikke kun et MAC problem.
Jeg får samme meddelelse en gang imellem på en Windows maskine. Jeg gør simpelt hen det at jeg frakobler min arduino's USB stik, venter nogle sekunder, og tilkobler igen.
655  Using Arduino / Microcontrollers / Re: AtTiny45: Pinchange interrupt and timer questions on: January 09, 2013, 05:56:20 pm
Quote
but I actually wanted to establish a pin change interrupt

If you want a pin change interrupt, you should look in table 9.3.2 and 9.3.4

You can choose whatever pin you want, below I have chosen pin PB3

Code:
ISR(PCINT0_vect){
digitalWrite(PB4,!(digitalRead(PB4)));
}

void setup(){
pinMode(PB4,OUTPUT);
GIMSK=_BV(PCIE);  //Table 9.3.2
PCMSK=_BV(PCINT3); //Table 9.3.4
}

void loop() {}

656  Using Arduino / Microcontrollers / Re: AtTiny45: Pinchange interrupt and timer questions on: January 09, 2013, 11:31:05 am
Quote
I do not know whether that works with the Attiny45
It does, actually it is not a library, it is part of the tiny core.

Quote
it is meant for me to understand the basis of timers.

I see, in that case I will follow your progress, I have never fully understood them either.
I once was adviced by Coding Badly to use Timer0 instead of Timer1 because it is much different than timers on other Atmels
657  Using Arduino / Microcontrollers / Re: AtTiny45: Pinchange interrupt and timer questions on: January 09, 2013, 10:18:34 am
Is there a reason for not using the tone() library to achieve what you want
658  Using Arduino / Project Guidance / Re: Battery Type on: January 08, 2013, 05:47:21 pm
Quote
I was thinking something like 5000mAh 50C 7.4V  would do.

If that is a 2 cell  LiPo pack (which I asume from the 7,4V rating) you should rember that when fully charged the voltage will be 8,4V, which is too much for your servos. You will need something like this:

http://www.hobbyking.com/hobbyking/store/__4319__TURNIGY_3A_UBEC_w_Noise_Reduction.html

That one is only rated a 3A, which may not be enough, depending on how many servos are used at the same time, and how much load you put on them.
659  Using Arduino / Installation & Troubleshooting / Re: attiny boards with varying clocks on: January 08, 2013, 05:33:28 pm
If I understand your question:

The tiny's 45/85/2313/84 are included in the tiny core:

http://code.google.com/p/arduino-tiny/

660  Using Arduino / Motors, Mechanics, and Power / Re: I'm getting a lot of static when driving servos. on: January 08, 2013, 11:29:54 am
In RC-model air planes we often use these ferrit rings on the servo leads, close to the receiver to avoid noise problems.

http://www.hobbyking.com/hobbyking/store/__23207__Soft_Ferrite_Rings_16x7x10_5pc_.html

You can get the as clip-on too
Pages: 1 ... 42 43 [44] 45 46 ... 72