Dallas, Texas
Offline
God Member
Karma: 0
Posts: 861
|
 |
« Reply #15 on: September 07, 2011, 09:07:23 pm » |
So, if I number the HEs 0-7 like in the attached drawing and they are wired to PC0-PC7 for purposes of this discussion and the top of the drawing is North. Let's also assume that an activated HE has a value of "1", regardless of how we would accomplish that.
Then if the rotor is pointing North, what would be the value of "reading"? If the rotor was pointing South, what would it be?
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 47
Arduino rocks
|
 |
« Reply #16 on: September 07, 2011, 09:09:35 pm » |
The original Dallas 1-wire instrument used a DS2450 4 input A/D converter with 8 reed switches and rotating magnets to determine direction. Someone wrote a sketch to read the speed and direction with an Arduino. I am using it as part of my weather station. Find it here... http://www.audon.co.uk/1-wire_weather.htmlMaybe the new AAG instrument is using a similar method.
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, Texas
Offline
God Member
Karma: 0
Posts: 861
|
 |
« Reply #17 on: September 07, 2011, 09:21:31 pm » |
The original Dallas 1-wire instrument used a DS2450 4 input A/D converter with 8 reed switches and rotating magnets to determine direction. Someone wrote a sketch to read the speed and direction with an Arduino. I am using it as part of my weather station. Find it here... http://www.audon.co.uk/1-wire_weather.htmlMaybe the new AAG instrument is using a similar method. Your link didn't work for me. I believe the original 1-wire instrument switched resistors with its reed switches so as to get unique A/D readings for each direction. This one doesn't appear to be switching any resistors.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 47
Arduino rocks
|
 |
« Reply #18 on: September 07, 2011, 09:23:53 pm » |
Yea the link is dead. I have the sketch and a schematic of the old wind instrument. I will post here.
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6837
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #19 on: September 07, 2011, 09:24:04 pm » |
Then if the rotor is pointing North, what would be the value of "reading"? If the rotor was pointing South, what would it be? North = 0 and 4 on = 00010001 South = 4 and 0 on = 00010001 That's my point. East of north = 0,1 and 4,5 = 00110011 West of south = 4,5 and 0,1 = 00110011 So you have better resolution but again, I don't see how you can tell the difference. Unless I'm missing something here (it wouldn't be the first time  ) you have to remove one of the magnets. _____ Rob
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6837
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #20 on: September 07, 2011, 09:25:41 pm » |
I believe the original 1-wire instrument switched resistors with its reed switches so as to get unique A/D readings for each direction. That would make a difference. Still I think removing a magnet would be easier. Maybe add a similar weight to keep the balance. ______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, Texas
Offline
God Member
Karma: 0
Posts: 861
|
 |
« Reply #21 on: September 07, 2011, 09:34:09 pm » |
I believe the original 1-wire instrument switched resistors with its reed switches so as to get unique A/D readings for each direction. That would make a difference. Still I think removing a magnet would be easier. Maybe add a similar weight to keep the balance. ______ Rob Very good. That's exactly what those inscrutable Chinese did. That gray thing that looks exactly like the other one is a dummy. Only one is a magnet. I'm proud to say I figured it out before I actually verified it. Like Sherlock Holmes said, whenever you've exhausted all the possibilities, whatever is left, no matter how improbable, is the answer. So maybe that's what the patent is for. 
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6837
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #22 on: September 07, 2011, 09:39:53 pm » |
He he, do I get a prize  _____ Rob
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, Texas
Offline
God Member
Karma: 0
Posts: 861
|
 |
« Reply #23 on: September 07, 2011, 09:58:55 pm » |
He he, do I get a prize  _____ Rob Sorry, no.  Good job, though! The remaining mystery to me is why they went to such trouble to hide what they are doing. The dummy looks EXACTLY like the real magnet. It's like they had a big batch of defective ceramic magnets to use up. The rotor that operates the HE for wind speed does have two functional magnets and looks identical to the Wind direction rotor. Curiouser and curiouser. I'm still left with the problem of reprograming the stock chip. Anyone with any suggestions about that please step in.
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6837
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #24 on: September 07, 2011, 10:22:51 pm » |
reprograming the stock chip I'd buy a $20 programmer like this http://www.pololu.com/catalog/product/1300from Pololu or someone (there are a few around) and make up a 6-way to 5-way cable. ______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, Texas
Offline
God Member
Karma: 0
Posts: 861
|
 |
« Reply #25 on: September 07, 2011, 10:31:44 pm » |
I might end up doing that but there's no reason why I can't use an Arduino for this project unless the manufacturer has burned the fuses to disable reprogramming.
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA
Offline
Full Member
Karma: 0
Posts: 174
|
 |
« Reply #26 on: September 07, 2011, 10:36:51 pm » |
The remaining mystery to me is why they went to such trouble to hide what they are doing. The dummy looks EXACTLY like the real magnet. It's like they had a big batch of defective ceramic magnets to use up. The rotor that operates the HE for wind speed does have two functional magnets and looks identical to the Wind direction rotor. Curiouser and curiouser.
Unlikely that they're hiding anything. Perhaps a counterweight? Provided for balance? I'm still left with the problem of reprograming the stock chip. Anyone with any suggestions about that please step in.
Adafruit sells a little ISP programmer (usbtiny) that should do the job nicely. It's supported directly by avrdude. BTW, the Bus Pirate that I mentioned yesterday also fulfills this purpose. Also supported by avrdude. Just sayin'... Oh, and my earlier suggestion regarding position is based upon experience with my own AAG weather station. You really don't get a useful position until it moves.
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, Texas
Offline
God Member
Karma: 0
Posts: 861
|
 |
« Reply #27 on: September 07, 2011, 11:14:45 pm » |
The remaining mystery to me is why they went to such trouble to hide what they are doing. The dummy looks EXACTLY like the real magnet. It's like they had a big batch of defective ceramic magnets to use up. The rotor that operates the HE for wind speed does have two functional magnets and looks identical to the Wind direction rotor. Curiouser and curiouser.
Unlikely that they're hiding anything. Perhaps a counterweight? Provided for balance? I'm still left with the problem of reprograming the stock chip. Anyone with any suggestions about that please step in.
Adafruit sells a little ISP programmer (usbtiny) that should do the job nicely. It's supported directly by avrdude. BTW, the Bus Pirate that I mentioned yesterday also fulfills this purpose. Also supported by avrdude. Just sayin'... Oh, and my earlier suggestion regarding position is based upon experience with my own AAG weather station. You really don't get a useful position until it moves. Those are all good suggestions. Thank you! Well, I'm going to call it a night.
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, Texas
Offline
God Member
Karma: 0
Posts: 861
|
 |
« Reply #28 on: September 08, 2011, 04:55:18 pm » |
The remaining mystery to me is why they went to such trouble to hide what they are doing. The dummy looks EXACTLY like the real magnet. It's like they had a big batch of defective ceramic magnets to use up. The rotor that operates the HE for wind speed does have two functional magnets and looks identical to the Wind direction rotor. Curiouser and curiouser.
Unlikely that they're hiding anything. Perhaps a counterweight? Provided for balance? I'm still left with the problem of reprograming the stock chip. Anyone with any suggestions about that please step in.
Adafruit sells a little ISP programmer (usbtiny) that should do the job nicely. It's supported directly by avrdude. BTW, the Bus Pirate that I mentioned yesterday also fulfills this purpose. Also supported by avrdude. Just sayin'... Oh, and my earlier suggestion regarding position is based upon experience with my own AAG weather station. You really don't get a useful position until it moves. I'm sure it's a counterweight as you suggest but it is made out of the same material that the magnet is made from. Maybe they are readily available from another process/product. I finally got avrdude/ArduinoISP to talk to the WS but I'll probably order one of the Adafruit programmers to use in the future. The problem was I needed to over-ride the baud rate in avrdude. Coding Badly figured that one out. The new AAG will be even easier to determine wind direction now that I realize that there is only one magnet. It will work when the vane is stopped as well.
|
|
|
|
|
Logged
|
|
|
|
|
Dallas, Texas
Offline
God Member
Karma: 0
Posts: 861
|
 |
« Reply #29 on: September 14, 2011, 09:03:55 am » |
I decided to go ahead and bump the clock frequency up to 16 MHz so as soon as a crystal arrives, I'll get back on this project. I'll be using a USBtinyisp and a USB/TTL serial interface instead of an Arduino for programming and communication also, so everything should go smoothly.
|
|
|
|
|
Logged
|
|
|
|
|
|