Shop OBEX P1 Docs P2 Docs Learn Events
pa1000 project need a help from good programmer. — Parallax Forums

pa1000 project need a help from good programmer.

trcdxtrcdx Posts: 7
edited 2010-05-02 01:57 in General Discussion
A little bit about the project.
The construction project - HF power amplifier. We need to write a program for circuit control and protection of the power amplifier. The idea of using BS2SX chip and some parts of the schematic solution of N4IP and W8ZR.
I am not a good programmer, so I ask you guys to help with the completion of this project. The prototype product has been completed recently and now need to finish the software for BS2SX.
I have attached the algorithm works, and some parts of the program that will help in creating a new program.
I will be grateful for the help.

Tnx,
Andy
eu6ab

==

ADC channels description:
Ch0 Reflector voltage
Ch1 Forwarder voltage
Ch2 Temp sensor 1
Ch3 Temp sensor 2
Ch4 ALC (automatic level control)
Ch5 PTT (Push-To-Talk) “manual activate transmitting status”
Ch6 Amper meter of 50V up to 50Amp.

Additional chanel “Rf_In” chanel - Measure transmitter frequency at P14 of BS2SX.

Algorithm of working process:

1. Show Welcome Message on Parallax 4x20 Serial LCD “27979”

2. Scan Ch2,3 and 5 for temp1,2 from AD590 and PTT signal of 12v.

3. If temp. is over 40 degrees – show “Need to Cool” message and activate Pin13. If temp is lower then 40 degrees Celsius then deactivate Pin13.

4. If PTT=0 Back to chapter 2. If PTT=12v then check Freq_In and measure transmit frequency. if Freq_In = correct range of frequencies 1.8 to 30 MHz then Pin10 and Pin12 activated “as result switch “Bias” and output relay ON.” If PTT=0 but Freq_In is detected, then measure transmit frequency. if Freq_In = correct range of frequencies 1.8 to 30 MHz then Pin10 and Pin12 activated “as result switch “Bias” and output relay ON.”

5. Then make delay 50 millisecond and activate Pin11 “as result switch RF relay ON.”

6. Scan Ch0,1,2,3,4,5,6

7. Measure ALC voltage via Ch4 and if it more then -1,5V volts (a negative-going) then deactivate Pin11 then Pin10 and 12 and show message at LCD “Pse Lower Input Power” If it lower then 1,5 volt – let it work.

8. Measure SWR from Ch0,1 and show the result on LCD. If SWR more then 1.7 then deactivate Pin11 then Pin10 and 12. Just Say 3-tone beep at Pin9 and show phrase on LCD “1.7 SWR EXCEEDED!”.

9. Measure Temp from two channels and show it on LCD. If one of two channels is over 40 degrees – show on LCD “TEMP EXCEEDED” message, Say 4-tone beep at Pin9. and activate Pin13. If temp is lower of 40 degrees Celsius then deactivate Pin13. and say short beep at Pin9.

10. Measure amperage from Ch6 and show it on LCD.

11. Cycled to chapter 2.

Some source of programming that will help :

1. Scan ADC chip :
' File...... Max186 Scanning All Channel Demo
' Purpose... To Read all 8 channels
' Author.... sam_sam_sam
' E-mail.... sam1030/dog/comcast.net
' Started... 11-25-09

2. Measure transmitter frequency etc.
' PROGRAM: tuner_code.bs2 Revision 12/04/03
' written by Jim Garland W8ZR
www.miami.muohio.edu/garland_archive/personal/w8zr/eztuner/ezdownload.htm

3. Measure SWR and Temp. from AD590JH by N4IP etc.
' PROGRAM: SSKWPEAK.bs2
www.ibelings.com/n4ip/mrf157.html

4. Parallax 4x20 Serial LCD “27979”
www.parallax.com/Portals/0/Downloads/docs/prod/audiovis/SerialLCD-v2.0.pdf

Post Edited (trcdx) : 3/16/2010 7:10:29 PM GMT

Comments

Sign In or Register to comment.