Show Posts
Pages: [1] 2
1  Using Arduino / Programming Questions / Re: Serial TX buffer/blocking on: March 22, 2012, 07:07:15 pm
I'm using 1.0 so I guess my method calls will block if/when they need to.
2  Using Arduino / Programming Questions / Serial TX buffer/blocking on: March 22, 2012, 06:46:29 pm
Do calls to Serial.print() and Serial.println() block? If not, is there a finite transmit buffer that can be corrupted if I transmit too much data too quickly?

I am assuming there must be some kind of TX buffer since there is an explicit Flush method: http://arduino.cc/en/Serial/Flush
3  Community / Exhibition / Gallery / Re: Arduino + ATtiny85 wireless sensors on: March 19, 2012, 04:33:52 pm
I got the original TX/RX pair from http://www.alpha-crucis.com/en/. I ordered two different TX modules but Alpha Crucis was unable to supply one of them.

I have since ordered two more TX modules from http://www.coolcomponents.co.uk/catalog/.
4  Using Arduino / Networking, Protocols, and Devices / Re: Bluetooth connection interfering with 315MHz RF reception on: March 19, 2012, 04:13:22 pm
I fixed it!

It turned out that simply positioning the Bluetooth module further away from the 315MHz module was sufficient to make it work.

http://mchr3k-arduino.blogspot.com/2012/03/wireless-sensor-node-enclosure-mark-2_19.html
5  Using Arduino / Networking, Protocols, and Devices / Re: Bluetooth connection interfering with 315MHz RF reception on: March 19, 2012, 06:26:55 am
Quote
Firstly, it should be noted that the Manchester encoding library which I am using receives messages in the background with the aid of a regular Timer 2 based interrupt. This should mean that I can receive readings even when the Arduino is receiving/processing/sending serial data.
No, it does not mean that. Serial data processing requires interrupts, too. It is possible that the interrupts are interfering with each other.
I am aware that Serial interrupts could interfere with my own interrupts. However, when I was using a Serial over USB connection this didn't seem to cause any issues.

Quote
Quote
This suggests to me that there is something about an active Bluetooth connection which is interfering with the reception of sensor readings.
You mean that one radio interferes with the other? Quite possible.
It is possible but is it normal/expected? I am assuming that the whole point of the circuit on my 315MHz RF RX module is to only receive data at 315MHz and to filter out other frequencies.
6  Using Arduino / Networking, Protocols, and Devices / Re: Bluetooth connection interfering with 315MHz RF reception on: March 19, 2012, 03:15:37 am
I think I should clarify the exact circumstances where the base station doesn't receive RF temperature readings. 

Firstly, it should be noted that the Manchester encoding library which I am using receives messages in the background with the aid of a regular Timer 2 based interrupt. This should mean that I can receive readings even when the Arduino is receiving/processing/sending serial data. 

My wireless temperature sensor broadcasts a reading every 5 minutes. My test case is therefore to do the following. 

1. Connect over Bluetooth
2. Send "data" command to view the current readings
3. Wait 6 minutes to allow time for at least 1 reading to be sent
4. Send "data" command - no new reading
5. Disconnect the Bluetooth connection
6. Wait 6 minutes
7. Reconnect over Bluetooth
8. Send "data" - new reading has been received

I have also tested with a Serial connection over a USB serial cable instead of over Bluetooth. In this configuration the base station is able to receive readings while connected over the Serial cable to my PC. 

This suggests to me that there is something about an active Bluetooth connection which is interfering with the reception of sensor readings. 
7  Using Arduino / Networking, Protocols, and Devices / Bluetooth connection interfering with 315MHz RF reception on: March 18, 2012, 06:39:39 pm
I am in the process of building a home wireless sensor network. I have so far built a simple wireless temperature sensor and a base station for logging temperature readings. My base station is built from the following hardware.

  • 5V 16MHz Arduino Pro Mini on the left inserted into a small breadboard.
  • USB mini breakout board for power on the bottom.
  • SD card breakout board with 2GB card in middle.
  • 315MHz RF receiver on the right.
  • Bluesmirf silver Bluetooth module in the bottom right.

(see attached for photo)

The issue which I have is that my base station correctly receives temperature readings until I connect over Bluetooth to interact with it. While connected I can correctly interact with the base station but no readings are received. When I disconnect again the base station begins to receive readings again.

I wouldn't expect the 2.4GHz Bluetooth radio signal to interfere with the 315MHz signal used for my temperature readings. Is there any other reason why I wouldn't be able to receive readings while connected over Bluetooth?
____

The code for the manchester encoding library which I am using for my RF link is available here: https://github.com/mchr3k/arduino-libs-manchester

The code for my base station is available here: https://github.com/mchr3k/arduino/blob/master/wsn_arduino/wsn_arduino.ino

My blog with more details about my wireless sensors is here: http://mchr3k-arduino.blogspot.co.uk/
8  Using Arduino / Programming Questions / Re: expected initializer before void on: March 14, 2012, 04:32:00 am

NOINLINE is not defined.  Remove it from your sketch.


Perfect - this has fixed my problem. Thanks!

This was valid when I was using SD.h which wrapped an older version of SdFat that defined this constant. I updated to use a newer version of SdFat directly and this caused my problem.

https://github.com/mchr3k/arduino/commit/16445a302c34d0a65f88d80fe0203f9072bac4b7
9  Using Arduino / Programming Questions / Re: expected initializer before void on: March 14, 2012, 03:24:50 am

Make the message window larger and you will see the light...

Code:
sketch_mar14a.cpp:3:24: error: MANCHESTER.h: No such file or directory
sketch_mar14a.cpp:4:26: error: SerialReader.h: No such file or directory
In file included from C:\Projects\Arduino\Sketch\libraries\SdFat/SdFat.h:26,
                 from sketch_mar14a.cpp:5:
C:\Projects\Arduino\Sketch\libraries\SdFat/SdFile.h:36: error: conflicting return type specified for 'virtual void SdFile::write(uint8_t)'
C:\Arduino\arduino-1.0\hardware\arduino\cores\arduino/Print.h:48: error:   overriding 'virtual size_t Print::write(uint8_t)'
sketch_mar14a:-1: error: expected initializer before 'void'
sketch_mar14a:-1: error: expected initializer before 'void'
sketch_mar14a:13: error: expected initializer before 'void'

Unfortunately I have already tried expanding the message window. The errors which I posted are the only error output which I get even when I turn on verbose compilation.

If you are trying to reproduce my issue you will need to add all of the same libraries to your arduino workspace libraries folder: https://github.com/mchr3k/arduino/tree/master/libraries. This includes the latest SdFat library which I think fixes the error you are getting.

Unfortunately I can't do better than linking to GitHub as I am posting from my phone. I will try to put together a more helpful zip of the required files later today.
10  Using Arduino / Programming Questions / Re: expected initializer before void on: March 14, 2012, 03:17:50 am
I don't know what you expect us to do with that link. All I see are a bunch of confusing links to other place. I have no idea where to go to find your code, nor much interest in trying. Post your code in a code window or as an attachment to the post, if the code is too large.

I'm not sure why the link isnt working for you. It is a direct link to my .ino file hosted on GitHub. Clicking the link works fine for me. I will attach the source file directly later today when I am back at a PC.
11  Using Arduino / Programming Questions / expected initializer before void on: March 14, 2012, 02:38:03 am
I am trying to compile my Arduino sketch (https://github.com/mchr3k/arduino/blob/master/wsn_arduino/wsn_arduino.ino) and I am getting a very strange error.

wsn_arduino:-1: error: expected initializer before 'void'
wsn_arduino:-1: error: expected initializer before 'void'
wsn_arduino:13: error: expected initializer before 'void'

I know that this error usually indicates a missing semi colon. However, I'm not sure how I can have missed a semicolon on line -1 and I can't actually spot any missing semi colons.

Can anyone else spot my mistake or suggest what this error means in my case?
12  Community / Exhibition / Gallery / Re: Arduino + ATtiny85 wireless sensors on: March 04, 2012, 07:25:50 pm
My latest posts:
http://mchr3k-arduino.blogspot.com/2012/02/wireless-sensor-node-part-7.html
http://mchr3k-arduino.blogspot.com/2012/02/wireless-sensor-node-part-8.html
http://mchr3k-arduino.blogspot.com/2012/02/wireless-sensor-node-part-9.html
http://mchr3k-arduino.blogspot.com/2012/03/wireless-sensor-node-enclosures-10.html
http://mchr3k-arduino.blogspot.com/2012/03/wireless-sensor-node-enclosure-mark-1.html
http://mchr3k-arduino.blogspot.com/2012/03/wireless-sensor-node-getting-started.html
http://mchr3k-arduino.blogspot.com/2012/03/wireless-sensor-node-enclosure-mark-2.html
http://mchr3k-arduino.blogspot.com/2012/03/wireless-sensor-node-enclosure-mark-2_19.html
13  Community / Exhibition / Gallery / Re: Manchester encoding library for RF links. on: February 06, 2012, 06:47:20 am
I'm using the following RF components:

http://www.alpha-crucis.com/en/wireless/1829-rf-link-transmitter-315mhz-3700386105357.html
http://www.alpha-crucis.com/en/wireless/1827-rf-link-receiver-4800bps-315mhz-3700386105333.html

You can find similar parts on many sites. There is a picture of my breadboard setup in the blog post which I linked.
14  Community / Exhibition / Gallery / Re: Manchester encoding library for RF links. on: February 05, 2012, 07:30:58 am
I have now added interrupt driven message reception to the Manchester library. Full details are available here: http://mchr3k-arduino.blogspot.com/2012/02/wireless-sensor-node-part-6.html
15  Development / Other Software Development / Re: Library: Arduino + ATtiny compatible Manchester encoding/decoding on: February 05, 2012, 07:30:32 am
I have now added interrupt driven message reception to the Manchester library. Full details are available here: http://mchr3k-arduino.blogspot.com/2012/02/wireless-sensor-node-part-6.html
Pages: [1] 2