Show Posts
Pages: 1 ... 33 34 [35] 36 37 ... 73
511  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
512  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
513  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);
}
514  Using Arduino / Microcontrollers / Re: ATtiny85 Limitations? on: March 24, 2013, 09:19:27 am
Pulse-width modulation

http://en.wikipedia.org/wiki/Pulse-width_modulation#See_also



515  Using Arduino / Microcontrollers / Re: Best way to program a bare 328P? on: March 24, 2013, 09:10:21 am
If you are using your Arduino as ISP, I would recommend the TinyISP sketch.
Using that, you will be able to have debug capabilities without extra hardware, and wire fiddling.
516  Using Arduino / Microcontrollers / Re: Problem with serial communication from Tiny84 to Arduino on: March 24, 2013, 09:07:04 am

Maybe this will help:

http://arduino.cc/forum/index.php/topic,115787.msg871995.html#msg871995
517  Using Arduino / Microcontrollers / Re: Problem with serial communication from Tiny84 to Arduino on: March 24, 2013, 06:23:55 am
Quote
But what about wireless communication?

I think that depends on yor wireless hardware.

I have a couple of these cheap 433 MHZ tranceiver/receiver

http://www.ebay.com/itm/5-sets-433Mhz-RF-Wireless-Transmitter-Receiver-Link-Kit-Module-for-Arduino-/170959638368?pt=LH_DefaultDomain_0&hash=item27cdfd0f60

I tried using them with SoftwareWerial, with no luck.

But with the manchester library they works fine:

http://mchr3k-arduino.blogspot.dk/2012/02/wireless-sensor-node-part-6.html
518  Using Arduino / Microcontrollers / Re: SoftwareSerial with ATTiny84 using ATtiny library on: March 24, 2013, 06:16:43 am
If you can upload a working blink sketch to your Tiny, you should be able to use TinyDebugSerial, which is a one way communication.

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

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

The output from the tiny is pin PB3.

You the need a serial/usb converter to connect it to your computer/serial monitor

more on this:

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

As you see you have other options:

1. TinyDebugSerial
2. SoftwareSerial
3. Use TinyISP and Tinyknockbang
4. Use TinyISP and Serial Relay
5. Use TinyISP and Nullmodem

519  Using Arduino / Microcontrollers / Re: ATtiny85 as ISP on: March 21, 2013, 05:42:50 am
Actually you only need one Attiny85 to program an Attiny85  smiley-cool

For example Digispark use the Micronucleus bootloader to make a USB-enabled Attiny85

https://raw.github.com/Bluebie/micronucleus-t85/master/firmware/releases/micronucleus-1.04.hex

Schematic:

https://s3.amazonaws.com/digispark/DigisparkSchematicFinal.pdf

Digispark

http://digistump.com/product.php?id=1

There are other bootloaders, for example USBasploader:

https://github.com/embedded-creations/USBaspLoader-tiny85

And Tom Carpenter from this forum made a bootloader for the Tiny's

https://github.com/TCWORLD/ATTinyCore/tree/master/tiny/bootloaders/optiboot
520  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: March 21, 2013, 04:15:28 am
Quote
No, the new version is 0.18.

Thanks, what I meant to ask was: where to get it.

This links leads me to version 0.17

http://sourceforge.net/projects/ard-core13/
521  Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted* on: March 19, 2013, 08:17:35 am
Is the newest core called 017 ?

I downloaded from the link in the first post in this thread
522  Using Arduino / Microcontrollers / Re: ATtiny85 as ISP on: March 19, 2013, 04:13:31 am
This one?

http://tequals0.wordpress.com/2011/09/26/attiny45-based-usbtinyisp-programmer/
523  Using Arduino / Microcontrollers / Re: ATTiny85v and Sleep Functions on: March 14, 2013, 04:22:33 pm
Quote
Timer0 generates the interrupt which increments millis(),

Are you sure ?

From the core_build_options.h

Quote
/*
  For various reasons, Timer 1 is a better choice for the millis timer on the
  '85 processor.
*/
#define TIMER_TO_USE_FOR_MILLIS                   1

524  Using Arduino / Sensors / Re: Digital input frequency on: March 13, 2013, 08:11:48 am
Take a look at this:

http://www.pjrc.com/teensy/td_libs_FreqCount.html
525  Using Arduino / General Electronics / Re: How to estimate number of hours remaining before battery dies? on: March 13, 2013, 06:38:33 am
You could use the "Secret Voltmeter"

https://code.google.com/p/tinkerit/wiki/SecretVoltmeter
Pages: 1 ... 33 34 [35] 36 37 ... 73