chipKIT® Development Platform

Inspired by Arduino™

Virtual Wire 1.15 on Uno32

Created Mon, 25 Mar 2013 17:31:28 +0000 by shiznatix


shiznatix

Mon, 25 Mar 2013 17:31:28 +0000

I am trying to use the VirtualWire library with my Uno32 but sadly, it won't compile if I include the library. When I try to compile, I get compilation errors about the clock not being set properly (as far as I understand). The compilation error is:

In function 'void vw_setup(uint16_t)': error: 'TCCR1A' was not declared in this scope error: 'TCCR1B' was not declared in this scope error: 'WGM12' was not declared in this scope

When I select Arduino Uno under the board type, it compiles just fine.

So my questions are:

  1. Has anyone used VirtualWire with this board before?

  2. If I try to upload a sketch to the Uno32 that was compiled for the Arduino Uno - will I destroy everything?

  3. If I must, how could I modify the library to work with this board?


Jacob Christ

Tue, 26 Mar 2013 21:37:19 +0000

I am trying to use the VirtualWire library with my Uno32 but sadly, it won't compile if I include the library. When I try to compile, I get compilation errors about the clock not being set properly (as far as I understand). The compilation error is:

These errors look like that the lib is talking directly to the Atmel processor.

When I select Arduino Uno under the board type, it compiles just fine. So my questions are:

  1. Has anyone used VirtualWire with this board before?

I have not.

  1. If I try to upload a sketch to the Uno32 that was compiled for the Arduino Uno - will I destroy everything?

It may not destroy anything, but it will not work. The code uploaded to the Ardunio Uno is not compatible with the Uno32.

  1. If I must, how could I modify the library to work with this board?

You need to replace the code that talks directly to the Atmel with either generic Wiring calls (probably not possible) or add an ifdef for chipKIT parts.

Here is a guide to this process, but its weak.

http://chipkit.net/tips-porting-arduino-libraries/

http://chipkit.net/guide-making-contributed-libs-cross-platform/

Jacob


shiznatix

Wed, 27 Mar 2013 15:46:26 +0000

Thanks for the info, I will give it a try when I get a chance.

Are there any other libraries that would be good for sending/receiving wireless radio communications?


ryban1

Sat, 06 Apr 2013 03:28:06 +0000

I am having the same issue with the sparkfun RF transmitter and receiver. Have you found a solution?


davemaster

Sun, 15 Sep 2013 07:08:35 +0000

I have a chipkit max32

So, let's get it on....

I'll maintain in touch with my progresses ..


Jacob Christ

Mon, 06 Jan 2014 19:14:04 +0000

Welcome to the party davemaster!

Jacob