Show Posts
Pages: [1] 2 3 ... 30
1  Using Arduino / Project Guidance / Re: RC Switch 433MHz not receiving signals from flash trigger on: September 17, 2014, 01:26:05 am
From the description of the flash unit , its using FM, which means the receiver you have simply wont work, as its
an ASK (AM) receiver.


Ah, well I am glad there is an explanation at least.... Does there exist an FM TX/RX module that I can use with arduino similar to my AM TX/RX?
2  Using Arduino / Project Guidance / RC Switch 433MHz not receiving signals from flash trigger on: September 15, 2014, 08:27:15 pm
So I am using this RC Switch example sketch to try to get the remote codes for this cheap flash trigger I just got. However I get nothing. I also tried the "advanced" receive demo sketch and got nothing in the serial monitor. I am using these type of RX/TX.

I tried my light switch remote and it read those codes just fine. I also tried a 315MHz receiver just in case the device is labeled wrong, but I got no different results. Or any results for that matter. The remote itself works fine with the receivers it came with.

Is there anything I can do to troubleshoot? Am I just out of luck with this thing?
3  Using Arduino / Microcontrollers / Re: Using radio library with ATTiny84? on: September 11, 2014, 05:45:09 pm
you are the biggest jerk I have ever met on these forums. I spent about 5 hours on google, I'm sorry I don't understand what the compiler was telling me, that's why I was here asking.

I hope you can manage to go on with your life, you really seem to have lost your mind over all of this.
4  Using Arduino / Microcontrollers / Re: Using radio library with ATTiny84? on: September 09, 2014, 06:06:20 pm
If you use this core

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

it compiles, but I don't know if it actualy works

Tried that one too..

Well I gave up and just used a 328P... Thanks anyway, everyone.
5  Using Arduino / Microcontrollers / Re: Using radio library with ATTiny84? on: September 08, 2014, 11:46:40 pm
Yes, like I said, I can upload a simple sketch to the ATTiny84 with no problem. I've tested it with blink and fade.
6  Using Arduino / Microcontrollers / Re: Using radio library with ATTiny84? on: September 08, 2014, 08:29:07 pm
I can compile VirtualWire but I can't find any info on how to send remote codes with that library.
7  Using Arduino / Microcontrollers / Re: Using radio library with ATTiny84? on: September 08, 2014, 08:25:02 pm
I am using the SendDemo sketch.

Is it possible the RCSWITCH library doesn't support the ATtiny84 ?

Well, that's what I am asking...
8  Using Arduino / Microcontrollers / Re: Using radio library with ATTiny84? on: September 08, 2014, 08:00:11 pm
The sketch:

Code:
/*
  Example for different sending methods
 
  http://code.google.com/p/rc-switch/
 
*/

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {

  //Serial.begin(9600);
 
  // Transmitter is connected to Arduino Pin #10 
  mySwitch.enableTransmit(10);

  // Optional set pulse length.
  // mySwitch.setPulseLength(320);
 
  // Optional set protocol (default is 1, will work for most outlets)
  // mySwitch.setProtocol(2);
 
  // Optional set number of transmission repetitions.
  // mySwitch.setRepeatTransmit(15);
 
}

void loop() {

  /* See Example: TypeA_WithDIPSwitches */
  mySwitch.switchOn("11111", "00010");
  delay(1000);
  mySwitch.switchOn("11111", "00010");
  delay(1000);

  /* Same switch as above, but using decimal code */
  mySwitch.send(5393, 24);
  delay(1000); 
  mySwitch.send(5396, 24);
  delay(1000); 

  /* Same switch as above, but using binary code */
  mySwitch.send("000000000001010100010001");
  delay(1000); 
  mySwitch.send("000000000001010100010100");
  delay(1000);

  /* Same switch as above, but tri-state code */
  mySwitch.sendTriState("00000FFF0F0F");
  delay(1000); 
  mySwitch.sendTriState("00000FFF0FF0");
  delay(1000);

  delay(20000);
}

The output:
http://pastebin.com/TsmC373g

Radio stuff as in any of the 433MHz radio libraries. They work fine with the regular Uno board, but not with the ATTiny84.
9  Using Arduino / Microcontrollers / Using radio library with ATTiny84? on: September 08, 2014, 06:59:20 pm
I would like to send 433MHz signals with my little module and an ATTiny84 rather than a full ATMega328p. I can get the ATTiny to do the blink/fade sketch. And I can get the radio stuff to work fine on the atmega328. But I get errors when I try both, I assume from lack of support on either end.

I am using the boards files from here: http://highlowtech.org/?p=1695

Are there any more updated or more compatible board files?

I've tried RCSwitch, https://code.google.com/p/rc-switch/, with these errors:
Code:
d:/arduino-105-r2/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr25/crttn84.o:(.init9+0x0): relocation truncated to fit: R_AVR_13_PCREL against symbol `main' defined in .text.main section in core.a(main.cpp.o)
d:/arduino-105-r2/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr25/crttn84.o:(.init9+0x2): relocation truncated to fit: R_AVR_13_PCREL against symbol `exit' defined in .fini9 section in d:/arduino-105-r2/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/avr25\libgcc.a(_exit.o)
RCswitch\RCSwitch.cpp.o: In function `RCSwitch::receiveProtocol1(unsigned int)':
C:\Users\Nick\Documents\Arduino\libraries\RCswitch/RCSwitch.cpp:645: relocation truncated to fit: R_AVR_13_PCREL against symbol `__udivmodhi4' defined in .text.libgcc section in d:/arduino-105-r2/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/avr25\libgcc.a(_udivmodhi4.o)
C:\Users\Nick\Documents\Arduino\libraries\RCswitch/RCSwitch.cpp:646: relocation truncated to fit: R_AVR_13_PCREL against symbol `__mulsi3' defined in .text.libgcc section in d:/arduino-105-r2/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/avr25\libgcc.a(_mulsi3.o)
C:\Users\Nick\Documents\Arduino\libraries\RCswitch/RCSwitch.cpp:646: relocation truncated to fit: R_AVR_13_PCREL against symbol `__mulsf3' defined in .text.fplib section in d:/arduino-105-r2/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr25\libm.a(mulsf3.o)
core.a(main.cpp.o): In function `main':
D:\arduino-105-r2\hardware\arduino\cores\arduino/main.cpp:11: relocation truncated to fit: R_AVR_13_PCREL against symbol `setup' defined in .text.setup section in SendDemo.cpp.o
D:\arduino-105-r2\hardware\arduino\cores\arduino/main.cpp:14: relocation truncated to fit: R_AVR_13_PCREL against symbol `loop' defined in .text.loop section in SendDemo.cpp.o
D:\arduino-105-r2\hardware\arduino\cores\arduino/main.cpp:15: relocation truncated to fit: R_AVR_13_PCREL against undefined symbol `serialEventRun()'




I've also tried 433Utils, https://github.com/ninjablocks/433Utils, with these errors.

Code:
d:/arduino-105-r2/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr25/crttn84.o:(.init9+0x2): relocation truncated to fit: R_AVR_13_PCREL against symbol `exit' defined in .fini9 section in d:/arduino-105-r2/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/avr25\libgcc.a(_exit.o)
RCswitch\RCSwitch.cpp.o: In function `RCSwitch::receiveProtocol1(unsigned int)':
C:\Users\Nick\Documents\Arduino\libraries\RCswitch/RCSwitch.cpp:645: relocation truncated to fit: R_AVR_13_PCREL against symbol `__udivmodhi4' defined in .text.libgcc section in d:/arduino-105-r2/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/avr25\libgcc.a(_udivmodhi4.o)
C:\Users\Nick\Documents\Arduino\libraries\RCswitch/RCSwitch.cpp:646: relocation truncated to fit: R_AVR_13_PCREL against symbol `__mulsi3' defined in .text.libgcc section in d:/arduino-105-r2/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/avr25\libgcc.a(_mulsi3.o)


I am aware that the pin numbers differ and everything, but I am just trying to get them to compile.

Are the better supported libraries or boards files? Or am I out of luck?
10  Using Arduino / Microcontrollers / Re: Programming an ATTiny85 without an arduino on: September 08, 2014, 06:44:14 pm
Sorry, I think there is come confusion, I was talking about one of these. A pocket AVR, it's not meant specifically for programming the ATTiny chips. I went ahead and just tried it and it is working, I didn't realize that the arduino IDE would upload a sketch with AVR, I thought it only bootloaded. But I've got it working how I was hoping.

Thanks.
11  Using Arduino / Microcontrollers / Programming an ATTiny85 without an arduino on: September 08, 2014, 05:52:42 pm
So I have found that my last few projects have ended up just using an ATTiny85. I have been able to program it fine with the arduino programmer thing, but it is a huge hassle. I have a one of those tinyusb avr programmers, but is there a way to use this and also still use the arduino IDE and language?
12  Using Arduino / Networking, Protocols, and Devices / Re: How can I test this serial BlueTooth module? on: March 12, 2014, 09:39:46 pm
On the face of it, your 7805 power supply seems reasonable, but I am more interested in you running off the Uno's 5v pin, with the Uno properly fed, in the normal manner.

I did that first, and only went to the 7805 when I got the same results.

It seems to me that there would be a problem with the serial stuff on the BT module. I am finding that even if I disconnect bluetooth from the phone and the bluetooth module starts blinking as it normally does when it is not connected, it keeps doing the loop thing. Or even if I start it without connecting the BT to the phone. Something must be wrong with the serial board, I don't see any other way around it.


edit:
Aha! I found it! http://mcuoneclipse.com/2013/06/19/using-the-hc-06-bluetooth-module/

This site shows the RX and TX of the BT module. Looking at those pins on mine, they are bridged with solder.


edit:

SUCCESS!!!

I soaked up the bride and now it works with the UNO! Now I can try again on the flight controller.

edit: and it works on the copter finally. Man am I relieved. Thanks for your help.
13  Using Arduino / Networking, Protocols, and Devices / Re: How can I test this serial BlueTooth module? on: March 12, 2014, 08:27:57 pm
Ok, just to be perfectly sure I am powering the BT module by itself with a 7805, a 10uF cap on the input and output and a 12v 2A wall adapter. The grounds of the BT/7805 and the arduino are connected. The 7805 is not getting more than warmish. (I also tried just plugging the wall adapter into the arduino DC jack and powering the BT from the 5v arduino line). I get the same issue: With resistors I can send text from the android terminal to the arduino but nothing from the arduino. Without the resistors it spits out the Setup() text over and over. I added this to the Setup()

Code:
   randomSeed(analogRead(0));
    Serial.println(random(1000));

Every time I restart it gives me a different number as expected. But this repeated text is the same number over and over. So I don't think the arduino is restarting, I think it is some kind of feedback.

Quote
I heard you say:
OK then, you first, say something.....
Go on, type something id hit Send,
or just hit the Enter key
800

I heard you say:
OK then, you first, say something.....
Go on, type something id hit Send,
or just hit the Enter key
800

I heard you say:
OK then, you first, say something.....
Go on, type something id hit Send,
or just hit the Enter key
800

This also appears on the android terminal.

What else is troubling is that if I reverse the RX and TX lines I get the EXACT same results. With and without resistors. Powering the BT module on its own.
14  Using Arduino / Networking, Protocols, and Devices / Re: How can I test this serial BlueTooth module? on: March 12, 2014, 03:41:57 pm
The resistors were in the PDF you linked, that's why I tried. It pulls down to ground actually, so I should have said pulldown resistors. Whatever the case, I tried with and without them. Without the the resistors it acts like there's feedback and it sends the text over and over.

I am using "Bluetooth Terminal" on a Galaxy S4, CM10.2. I am certain that I am connected to the module because I do get some communication, but it is erratic as I have explained.
15  Using Arduino / Networking, Protocols, and Devices / Re: How can I test this serial BlueTooth module? on: March 12, 2014, 01:51:44 am
Is it supposed to be sending that text in Setup() to my phone? Because it doesn't. It does receive text from the phone. The only way I get text on the phone from the arduino code is if I don't use the pullup resistor and just connect it directly. But then it goes nuts, like some kind of loop feedback and keeps printing those Setup() messages over and over.
Pages: [1] 2 3 ... 30