Show Posts
Pages: 1 ... 33 34 [35] 36 37 ... 74
511  Using Arduino / Networking, Protocols, and Devices / Re: ATtiny85 SoftSerial, takes a while to stablise? on: March 27, 2013, 11:34:18 am
Quote
Yeah I'm selecting ATtiny85 (internal 8Mhz Clock) from the boards menu.

And select "Burn Bootloader"  ?
512  Using Arduino / Networking, Protocols, and Devices / Re: ATtiny85 SoftSerial, takes a while to stablise? on: March 27, 2013, 10:05:06 am
If you only need one way communication (from the Tiny to PC) you could use TinyDebugSerial or TinyISP and the knockbang library:

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



513  Using Arduino / Networking, Protocols, and Devices / Re: ATtiny85 SoftSerial, takes a while to stablise? on: March 27, 2013, 09:24:00 am
What clock speed are you using, try 8MHZ

The internal oscillator is not  particularly precise which can affect the serial communication, but you can tune it

http://arduino.cc/forum/index.php/topic,8553.0.html
514  Using Arduino / Programming Questions / Re: USB ISP Programmer - Serial IO with PC? on: March 26, 2013, 05:13:45 pm
I have a guide here, that shows how to program an Attiny85 using Arduino UNO

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

Quote
with a programmer: "Upload using Programmer", and when it's running, and view the serial input to aid in debugging.

To achieve that you could use TinyDebugSerial, or SoftwareSerial,

but I would recommend using TinyISP and KnockBang

TinyISP is a modified ArduinoISP sketch (by Coding Badly) that bacically gives
you the same debugging capabilities that you are used to from the Arduino

guide:

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

and the original thread:

http://arduino.cc/forum/index.php/topic,123388.15.html

start from reply #19
515  Using Arduino / Project Guidance / Re: 8 Channel monitoring & switching DC voltage, which Arduino’s? on: March 26, 2013, 05:02:17 pm
Thanks for the clarification Terry.

And yes it is a nice board and a good price.
516  Using Arduino / Project Guidance / Re: Wireless control of a servo with a potentiometer on: March 26, 2013, 04:59:14 pm
A cheap solution:

I have used a cheap set of 433 TX/RX like these:

http://www.ebay.com/itm/1pcs-433Mhz-RF-transmitter-and-receiver-kit-for-Arduino-project-/400444861465?pt=LH_DefaultDomain_0&hash=item5d3c5fac19

As transmitter I used an Attiny85 with a potmeter and manchester encoding.

For receiver and servo controller I used Arduino Uno.

It works, but don't expect long range, maybe 5 - 10 meter
517  Using Arduino / Project Guidance / Re: 8 Channel monitoring & switching DC voltage, which Arduino’s? on: March 26, 2013, 11:39:17 am
Hi Terry,

Just a question on your 3-pin Arduino:

Is the 5 Volt in the 3 pin row connected to the 5Volt from the Arduino.
For servos it would be nice if you could connect it to external power for servos
518  Using Arduino / Programming Questions / Re: Program AVR Tiny 85 via Arduino Uno on: March 26, 2013, 10:38:26 am
I would recommend this core

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

A little guide:
http://www.ernstc.dk/arduino/attiny85.html
519  Using Arduino / Programming Questions / Re: Please help me with arrays on: March 26, 2013, 10:35:28 am
This one ?

http://www.thebox.myzen.co.uk/Tutorial/Arrays.html
520  Using Arduino / Programming Questions / Re: Program AVR Tiny 85 via Arduino Uno on: March 26, 2013, 10:01:12 am
That error indicates that your tiny core is not installed in the right place.

521  Using Arduino / Microcontrollers / Re: Problem with serial communication from Tiny84 to Arduino on: March 25, 2013, 09:27:33 am
Mine is

ATTINY84-20PU

But for blinking a LED that should not matter. It is the max frequence, and as you are using 8MHZ you should be fine.

By the way pin 1 is physical pin 3 on the Tiny, see this reference sheet

http://www.akafugu.jp/images/microcontroller-reference-sheet.png
522  Using Arduino / Microcontrollers / Re: Problem with serial communication from Tiny84 to Arduino on: March 25, 2013, 06:05:29 am
Did you try baselsw's library from reply #8, as I said it worked for me on a Attiny84.
523  Using Arduino / Microcontrollers / Re: ATtiny85 Limitations? on: March 24, 2013, 06:05:03 pm
Quote
const int inPin = 3;    // analog in, to ADC3 for temp sensor, pin 7 on ATtiny85

It is Pin 2 on Attiny85
524  Using Arduino / Microcontrollers / Re: Problem with serial communication from Tiny84 to Arduino on: March 24, 2013, 12:58:51 pm
I forgot to mention, I use version 1.01

So your step 1 and 2 are OK

In yoyr librarries folder you should have a folder called MANCHESTER

In that folder you copy the two files MANCHESTER.cpp and MANCHESTER.h from baselsw's link.

And thats it.

If yoy enable * vebose output you will be able to see if you use the right library files.

* In file -> preferences
525  Using Arduino / Microcontrollers / Re: Problem with serial communication from Tiny84 to Arduino on: March 24, 2013, 12:42:15 pm
 baselsw

I got curious and tried your modified manchester library on an Attiny84.
It worked right out of the box  smiley-grin

Thanks for sharing.

BTW I am using this core:

https://code.google.com/p/arduino-tiny/downloads/detail?name=arduino-tiny-0100-0015.zip

Attiny84 as tx and Arduino UNO as rx

and this test sketch

Code:
#include <MANCHESTER.h>
unsigned int data = 1000;

void setup()
{  

MANCHESTER.SetTxPin(4);
//  MANCHESTER.SetTimeOut(1000);
}

void loop(){
data++;

MANCHESTER.Transmit(data);

delay(500);
}
Pages: 1 ... 33 34 [35] 36 37 ... 74