AVR interrupting/resetting?

The operation of transmitters designed to jam or block wireless communications is a violation of the Communications Act of 1934, as amended ("Act"). See 47 U.S.C. Sections 301, 302a, 333. The Act prohibits any person from willfully or maliciously interfering with the radio communications of any station licensed or authorized under the Act or operated by the U.S. government. 47 U.S.C. Section 333. The manufacture, importation, sale or offer for sale, including advertising, of devices designed to block or jam wireless transmissions is prohibited. 47 U.S.C. Section 302a(b). Parties in violation of these provisions may be subject to the penalties set out in 47 U.S.C. Sections 501-510. Fines for a first offense can range as high as $11,000 for each violation or imprisonment for up to one year, and the device used may also be seized and forfeited to the U.S. government.

Moderators: adafruit_support_bill, adafruit

AVR interrupting/resetting?

Postby yopper » Sat Apr 14, 2007 5:09 pm

Hi,

My wave bubble is almost done and I'm now testing the range and jamming. However, all the time I'm seeing these strange and intermittent errors with the atmega chip. I've never worked with atmel micros, so maybe someone can shed some light on this.

The controller restarts and prints a number then the Wave Bubble 1.0 banner. Sometimes this is a loop it won't get out of (mostly with '8' being printed).

Currently I'm stuck in that I can not get it to tune both VCO's, while tuning either of them separately works fine. I get errors like this:

Code: Select all
---------------------------------
p> Display progs
a> Add prog
d> Delete prog
t> Tune prog
q> Quit
---------------------------------
=> t
1 programs in memory
---------------------------------

Program #1 of 1

VCO 1: 1900 -> 2000 (0, 0)
VCO 2: 900 -> 974 (0, 0)
---------------------------------
PLL for RF freq 1950MHz & prescaler 8: B=243 A=6
0, F36

midpoint @126

bandwidth tuning...
PLL for RF freq 1900MHz & prescaler 8: B=237 A=4
0, ED4
254 done!
PLL for RF freq 937MHz & prescaler 8: B=117 A=1
0, 751
keypress..2Wavebubble v1.0
keypress..


Anyone has some clues on how this may be solved?

Thanks
yopper
 
Posts: 10
Joined: Mon Jan 01, 2007 2:26 pm

Postby Eno » Sun Apr 15, 2007 1:25 am

I'm not as far along as you are, but hope to once I get past this my own problem. Is there any way you can tell me how you programmed to ATMEL uController? Did you have to modify the firmware provided at all? Did you run it from DOS command prompt or what?

Any insight would be greatly appreciated.
Eno
 
Posts: 38
Joined: Tue Mar 20, 2007 11:46 am

Postby yopper » Sun Apr 15, 2007 6:40 am

Eno wrote:Is there any way you can tell me how you programmed to ATMEL uController? Did you have to modify the firmware provided at all? Did you run it from DOS command prompt or what?


I'm using the Atmel JTAGICE MK-II adapter from a Linux Debian system.
http://www.atmel.com/dyn/products/tools ... ol_id=3353

This took no effort at all. The make file needed just modifications for the right adapter and after installing the needed packages everything worked out of the box. Big thanks to timor for that.

Packages installed:
avr-libc avra avrdude binutils-avr gcc-avr

I'm also trying to get avarice working for debugging, but that turns out to be more difficult. It needs the cvs version of avarice and apparently my adapter is newer with a different USB identifier. Even with some source mods it still hangs during the intialization.

Hope this helps
yopper
 
Posts: 10
Joined: Mon Jan 01, 2007 2:26 pm

Postby yopper » Sun Apr 15, 2007 6:45 am

Oh, btw: you do have to edit main.c to get the desired tests to run.
yopper
 
Posts: 10
Joined: Mon Jan 01, 2007 2:26 pm

Postby adafruit » Sun Apr 15, 2007 8:52 am

let me get you a more recent version. the code i wrote for the release candidate was, well, 'release candidate' quality. ill upload it in a bit, gotta go dimsum right now ;)
User avatar
adafruit
 
Posts: 10491
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

possible problems

Postby none_such » Sun Apr 15, 2007 11:26 am

yes, you have to uncomment the individual tests that are located in the main.c file and recompile the files each time. The are all located in the same main routine so it is not hard to find

My output is a bit different: I am using Windoze XP (yuck) and have had no hitches with the AVR Studio for that platform. I can see that the program is crapping out when you tune for the second VCO. There is something very funky about your output: "PLL for RF freq 1950MHz & prescaler 8: B=243 A=6
0, F36"
The F36 looks like it could be an error or hexidecimal output - in decimal it would be the number 3894 and "ED4" would be 3796. they would not be frequencies, probably registers. I get a single number (between 0 and 254 which is the resolution for range of the selected frequencies) so this seems strange to me. CHECK ALL YOUR ICs FOR BRIDGES. Specifically look at Atmel chip and the 7 volt dual switch. The only problem I get sometimes on both units I have built is a "VCO range is too low" if I pick a high frequency for the end. I think I stressed one of the VCO and damaged it: the pll can't see a signal at the upper range on one of the VCOs.

I have built 2 so far that worked for a while but the pll seems to be wandering on both after flawless performance - probably capacitor problem surrounding that element after heating since there is extra flux around these parts. Fried the 3.3 LDO once also. This thing really needs a case so I changed the switch to a longer one to place it in one later. This is not an easy thing to build but if you have patience it can be done.
User avatar
none_such
 
Posts: 76
Joined: Mon Jun 12, 2006 12:16 pm

Postby yopper » Sun Apr 15, 2007 2:01 pm

Thanks for your comments. About the '0, F36' that is the output of some debug lines in pll.c about line 97 in pll_set_freq. They are hex and the values that are programmed into the pll.

About the VCO, I could see that happening if you were using the ROS2500 with the resistor values described in the schematic or the site. As far as I can see they would exceed the 16V max considerably. I'm now using the values I mentioned in another post and they seem to work well.

Actually I do have an idea that I may be using a power supply that is not sufficient for both VSO's at the same time (650mA). If the supply current drops it resets the CPU maybe causing the voltage to rise back again. I'll try another supply and reprogram the reset pin fuse.
yopper
 
Posts: 10
Joined: Mon Jan 01, 2007 2:26 pm

Postby yopper » Sun Apr 15, 2007 3:05 pm

Ok, to reply to my own post (spelling corrected):

yopper wrote:Actually I do have an idea that I may be using a power supply that is not sufficient for both VCO's at the same time (650mA). If the supply current drops it resets the CPU maybe causing the voltage to rise back again. I'll try another supply and reprogram the reset pin fuse.


This seems to have been the problem. It works now.

I do see other strange power supply issues such as the 12V boost converter haning at 6v after starting the VCO's.

I don't have proper antenna's yet, but with 1/4 wave length wire I can't get further than about 1-2 meters. Does this seem correct? What is the range with good antenna's?
yopper
 
Posts: 10
Joined: Mon Jan 01, 2007 2:26 pm

range approximation

Postby none_such » Mon Apr 16, 2007 3:48 am

I got one to one and a half meters radius with the primitive antennas. With a multi band antenna and a 2.5 ghz antenna with the specified gain block I got about 4 to 5 times that (I brought it out to field test it only a short time and found I was surprisingly embarrassed to linger in an offensive manner to determine a range of functionality).

Your issue with the voltage drop was not experienced by me except when I was using an input voltage that was lower than recommended (approximately 3.0 volts) with the VCOs both active - this drop was across the board on all voltage sources. When building the power supplies I did get a jump in the approximate 28 volt supply (about 32 volts total), this was because of a cold solder union in the circuit. I do believe your description of why your microcontroller is re-booting itself is highly likely. Your halving of the 12 supply under load could be for a few different reasons, further testing is required on the elements that utilize 12 volts. Some suggestions which maybe completely useless: about 25 mA is the max current draw for ROS-2500 so it shouldn't be an issue unless its broken (which it seems to not be in the single mode) Additionally, the high voltage switches could be examined by isolating them from the VCOs (desolder ferrite and capacitor feeding VCO?) and checking for the voltage drop with both on.
Cheers
User avatar
none_such
 
Posts: 76
Joined: Mon Jun 12, 2006 12:16 pm


Return to Wave Bubble

Who is online

Users browsing this forum: No registered users and 1 guest

Stuff to buy from the Adafruit store and links to product documentation!


New Products [103]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[61]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]