Why isn't the sketch in the repository?
WSDL-WxShield-Source-1.5-Source.zip needs a few changes to work with current Arduino, as they renamed some header files. Where can I send a patch?
Would this be the reason I can not get the sketch to verify? I have tried everything to get it to run on a Mega2560 series 3. Any help would be greatly appreciated.
Probably. Do the errors mention WProgram.h? Just post one.
Which receiver/shield do you have?
Sucess! I had to download Arduino0022 and use it to download to the Arduino/shield. This is what was printed on the serial monitor:
I am using the Freetronics shield and it only has the Receiver on it which is why the BMP Failed. Unfortunately I am at work and do not have any O.S. sensors to test with. I guess this means you need to use the old Arduino0022 software to make this combination of Arduino Mega 2560 r3 with the Freetronics ASK receiver shield. Will post more positive results as they happen.
False alarm, I am talking to the Arduino but it is not decoding anything. I do have a good signal going in on pin D8, What files do I need to load as part of the sketch? I am going wacko trrying different file combonations…….thanks
You set the wrong shield version in WxReceiverConfig.h
I don't know what you mean by "load"
I am not sure I am doing this correctly. Is there only 1 file that gets uploaded to the Arduino? From reading the latest sketch it seems they want you to upload WsdlWxShield, WxReceiverConfig, WxReceivers and wxrx. The last 3 being H files. When I compile and upload that combination it seems to work but never outputs anything except : WXS:1.5
I am using an Arduino Mega2560 r3 using Arduino022 firmware. Arduino1.0 would not compile without errors. I have an O.S. raingauge sitting on the desk next to me, model PCR800. Once again any help will be greatley appreciated.
First I'd move the desk out of the rain!
You only upload the pde/ino file, it automatically brings the rest with it. Here's a version that works with Arduino 1.0 your hardware:
Or just adjust WxReceiverConfig.h using some text editor other than the Arduino Environment.
Thanks for the reply. I uploaded the sketch you posted and it compiled and ran but still no O.S. messages. I am using the receiver from freetronics which uses the RXB6 receiver module. I can see signal going into the Arduino on pin D8. Anymore ideas now that the rain has subsided on my desk?
Thanks again, Jimmy
I forgot to mention that when watching on the data window of WDSL the Arduino resets on a regular interval
I don't know how often the PCR800 sends data, maybe wait an hour or get a simple temperature sensor. Also try some wire for an antenna.
Best confirm with the serial monitor in the Arduino environment before going to WSDL.
If "seeing signal" involves an oscilloscope you could check against the protocol description on the website.
How regular? Maybe the watchdog is triggered by it not getting data.
I've never seen an Arduino Mega, so this only comes to me now, but it uses a different pin mapping than the Uno. I'm afraid the one the sketch uses isn't even connected here, so you can stop trying. Sorry.
I think there must be a work around (patch). Does anyone know what the pin out differences are?
vanity, rawkitman…have you been to this site and tried the links there? <http://wmrx00.sourceforge.net> FYI, the PCR800 sends about every 47 seconds. (Protocol 3.0)
Tried every thing there. no luck. scouring the aduino forums I have scoped the input on pin d8 and the signal is getting to there. Seems like thaat is as far as it goies. I wish there was a way to make the pcr800 tx constantly. I will have to go back to the FCC web site and pull up the schematic of the pcr800 and see if there is a test mode. I beleive there is a 1024hz square wave test routinge built into the sketch. I will try to activate that. any other suggestions?
What does xafxaf think we missed?
Sketches are really written for processor features, in this case ICP1. Depending on the processor multiple features share one of the little legs, and depending on the board those legs are connected to pins along the side. On the Arudino Uno, ICP1 shares a leg with what makes up digital pin 8. On the Mega, ICP1 has its own leg, which as I said isn't connected to anything. You'd need a very tiny soldering iron.
ICP4 is connected to digital pin 49, but making the code use that is not easy.
Thanks vanity, now it's time for a trip to RS for an UNO….bigger and better things for the Mega latter
It's not necessary to buy an Uno to replace your Mega2560 for this. All the pins on the Uno are present on the Mega2560, though perhaps with different numbers in a few cases. Much simpler and cheaper to just change the pins in your sketch than to buy an entirely new board.
Here is a chart showing the pinout of the UNO and the MEGA2560. Looks like it would require a lot of rewriting the sketch to have any chance of working. I already picked up an UNO and it is working beautifuly. I don't think it is picking up Version 1 instruments. It found my rain gauge and outside temperature humidity instrument. Never sees the anemometer/wind direction instrument. Willl work on it later. Need to order parts to have indoor temp and barometric pressure. I might even try to build the second shield as it has a much better rx. Hi kd7eir, I am also a ham, WB4WMJ. Been licensed for almost 42 years. are you active on the low bands? might be able to hook up on the air. Here is the link to the chart
I like how kd7eir just says no without addressing my arguments.
The Arduino libraries don't support ICP1, so the sketch has to fiddle with registers directly. You can't just search & replace with ICP4.
Vanity - I pass on information, not attacks. Sorry if you feel that it's not worth the effort to make the sketch work with the 2560, but that does not change the fact that it IS NOT necessary to replace the 2560 with an Uno to make the sketch work.
Further, it's not MY JOB to rewrite the sketch for those that just want something handed to them. I will, however, help those that politely ask for assistance in modifying the sketch for use with the 2560.
A Weather Guy
I just posted a new source archive for download under "Current-Stable-Release". This fixes the problem with WProgram.h and it built okay for me with Arduino 1.0. Warning - I have built this but not tested the sketch. It should otherwise be the same source as version 1.5 but this has not been verified. Don't try this out unless you have the ability to go back to a working release.
I also added the Arduino source to the SVN repository if anyone wants to download it that way instead.