Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: Still an issue with arduino 1.02 when using VirtualWireTiny on: January 18, 2013, 11:46:46 am
Hi Coding badly,
Sorry for the cross post,
I was so focused on making VirtualWireTiny to work, that I didn't see that the post was about VirtualWire.

Sorry.
2  Community / Exhibition / Gallery / Re: Manchester encoding library for RF links. on: January 18, 2013, 11:39:47 am
The original code works for RX and TX on ATTiny85.
The new library doesn't work for RX under ATtiny85.

The only issue I had with the previous library the that the timeout didn't work on the receiver and it would block.

3  Using Arduino / Programming Questions / Still an issue with arduino 1.02 when using VirtualWireTiny on: January 14, 2013, 02:52:25 pm
http://arduino.cc/forum/index.php/topic,42239.0.html

BareMinimum compiles only after adding the undef lines:

Code:
#include<VirtualWireTiny.h>
#undef int
#undef abs
#undef double
#undef float
#undef round
void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:
 
}
4  Using Arduino / Project Guidance / Re: Programming the ATtiny85 notes on: January 11, 2013, 07:53:41 am
Those are Zeros and letters 'o'

Thanks for taking the time to give us this.

Question: The characters I see are not all the same for "Zero".. Are those at the end ZERO or "o" ??

Quote
* search for the section that says: memory "lock"

* add just before write = "...  the following two lines

          read            = "0 1 0 1  1 0 0 0  0 0 0 0  0 0 0 0",
                           "0 0 0 0  0 0 0 0  o o o o  o o o o";


5  Using Arduino / Project Guidance / Programming the ATtiny85 notes on: January 11, 2013, 05:08:35 am
Hi Forum,
I wanted to leave a single post with general issues you may encounter when programming the ATtiny85. This post is the result of reading other people posts and messing around with my own install.

1) Setting up Arduino IDE:
* Download zip file from http://code.google.com/p/arduino-tiny/
* unzip the file under your arduino setup directory under hardware. Mine looks like this:

~/arduino/hardware$ ls -ltr
total 12
drwxrwxr-x 4 meirm meirm 4096 Jul 31 01:59 tiny
drwxrwxr-x 6 meirm meirm 4096 Jan 11 10:52 arduino
drwxrwxr-x 3 meirm meirm 4096 Jan 11 11:44 tools

* move the file eeprom.h from the zip to tools/avr/lib/avr/include/eeprom.h

2) Edit AVRDUDE.conf
* open the file /hardware/tools/avrdude.conf

* search for the session of ATtiny85

* add the following two lines after the line that says signature
     pagel            = 0xD8;
     bs2              = 0xE2;

* search for the section that says: memory "lock"

* add just before write = "...  the following two lines

          read            = "0 1 0 1  1 0 0 0  0 0 0 0  0 0 0 0",
                           "0 0 0 0  0 0 0 0  o o o o  o o o o";

3) Set your arduino to work as ISP programmer

* In arduino IDE, open example ArduinoISP and burn it in your Arduino board (328/uno)

4) Connect Arduino to the ATtiny85

* From arduino to ATtiny85 connect the pins

Ground -> Ground (pin 4 )
5V -> VCC(pin 8 )
10 -> Pin 1
11 -> pin 5
12 -> pin 6
13 -> pin 7

5) Set ATtiny to run at 8MHz

* In the arduino IDE, select arduinoISP as programmer

* Select Board ATtiny85 at 8MHz

* select 'Burn Bootloader'

6) Run Blink on ATtiny85

* connect a led with anode on pin 4 ( third physical pin in ATtiny85, the one above GND)
  and cathode on GND (you may use a resistor)

* Select from Examples, Basic the blink sketch

* Replace pin 13 for pin 4 ( third physical pin in ATtiny85, the one above GND)

* Upload code

6  Forum 2005-2010 (read only) / Syntax & Programs / Re: RF Link 4800bps Receiver & Transmitter on: June 15, 2010, 08:07:53 am
you can do virtualwire but I would recommend a simpler implementation if you transmit a byte worth of info.
On your sample, you are using three possibles values to turn on/off the leds.
for that is enough 2 bits
00 R
01 G
10 B

in a byte you can turn on/off up to 8 leds.

but what if you have noise in the line when you are not transmitting?
First you can do bit parity and even put the same bits 3 times in a single byte (take that for redundancy) and 2 bits for parity.
you could also use 3 bits so you could turn on/off simultaneous leds and still have 2 bits for bit parity.
           redundant
R G B   R G B          parity
1 1 1     1 1 1           1 1
0 0 0     0 0 0           0 0

you do parity on the first 6 bits and parity on the 6 + the first parity bit.

on top of that, you can set it to read the first byte after a byte with zero value.
7  Forum 2005-2010 (read only) / Syntax & Programs / Re: RF Link 4800bps Receiver & Transmitter on: June 13, 2010, 09:59:06 am
Hi,
When you are using a one way transmission you can't know if there is a receiver. The same way as a FM radio station doesn't know if someone is listening.

I suggest that if you do not want to read partial data, you set up a header and tail for each transmission packet and on the client side you write the code that will match a full packet.

Another option is setting a delay between packets so the client will try so sync to the transmission.
8  Forum 2005-2010 (read only) / Development / Re: Debug/Log library v0.1 released on: June 09, 2010, 09:16:27 am
I would like to avoid the overhead on the users .pde file an I also prefer short commands with minimum arguments.
I see the need for both approaches.
I would try to use conditional loading in order to reduce the footprint of the code.
9  Forum 2005-2010 (read only) / Development / Re: Debug/Log library v0.1 released on: June 09, 2010, 09:06:10 am
Thanks,
I will see how to implement the things you pointed out.
10  Forum 2005-2010 (read only) / Development / Debug/Log library v0.1 released on: June 09, 2010, 08:27:45 am
Hi list,
I created a library for debugging/logging. I released the code under GPL license at my site: http://www.riunx.com
Please fill free to use it and give feedback.

Sincerely,
Meir (falafel)
11  Forum 2005-2010 (read only) / Interfacing / Re: Arduino and VirtualWire on: June 15, 2010, 08:10:43 am
I just wrote a reply to another thread that may serve your purpose as well.

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1276430510/0
12  Forum 2005-2010 (read only) / Workshops / Arduino in Israel on: June 09, 2010, 08:26:27 am
Anyone interested?
Pages: [1]