Programmer Needed PIC12f683

Status
Not open for further replies.

wired4au

New Member
Hi members
I have a project that requires programming of a pic 12f683

It is to drive a speaker at 30 second intervals at a certian pitch

I have schematics for the cirquit but i can not figure out the programming if anyone can help i would be happy to discuss payment via Paypal or similiar method .

Kind Regards
Daniel H

I am very new to microchips and this forum if i have made a mistake posting please let me no thank you all.

Last edited:

dougy83

Well-Known Member
Sure, I have no morals.

Can you be more specific with what your program should do? You'll also have to include the schematic.

Last edited:

wired4au

New Member

What i need from the program is to generate a tone for 5 sec then off for 30 sec and to repeat this until switched off. The part i cant figure out is how to generate the tone frequency i need. I will attach the image i made for the pcb layout.

Attachments

• 56 KB Views: 284

blueroomelectronics

Well-Known Member
Is this a school assignment?

mvs sarma

Well-Known Member

What i need from the program is to generate a tone for 5 sec then off for 30 sec and to repeat this until switched off. The part i cant figure out is how to generate the tone frequency i need. I will attach the image i made for the pcb layout.
In the present schematic, the transistor is to fail.
There is no limiting resistor for the base current. Better to have a 4k7 or some value from port pin to base

wired4au

New Member
Is this a school assignment?
No just a hobby project im working on and willing to pay for an expert to do the programming side.

blueroomelectronics

Well-Known Member
You'll need a cap or two to filter & decouple the power supply. What frequency do you want to generate?

wired4au

New Member
You'll need a cap or two to filter & decouple the power supply. What frequency do you want to generate?
I was hoping to be able to adjust the frequency within the program so i can fine tune the tone but a starting point would be a pattern of osc 500Hz and a freq of 2.3kHz

Regards

dougy83

Well-Known Member
In the present schematic, the transistor is to fail.
There is no limiting resistor for the base current. Better to have a 4k7 or some value from port pin to base
Unlikely. If the transistor is to fail, it will be because it's left on for too long; not due to the base current.

As for your program, have a look at PICBASIC Programming &mdash; Evolved | Proton Development Suite and try the proton+ picbasic compiler. It's very simple and quick to use. As an alternative, there's BoostBasic from SourceBoost Technologies (I haven't used this one). Both basic compilers have a free version that is fine for small programs.

The language is also very easy to program in: it's almost like writing in english.

Last edited:

wired4au

New Member
Unlikely. If the transistor is to fail, it will be because it's left on for too long; not due to the base current.

As for your program, have a look at PICBASIC Programming &mdash; Evolved | Proton Development Suite and try the proton+ picbasic compiler. It's very simple and quick to use. As an alternative, there's BoostBasic from SourceBoost Technologies (I haven't used this one). Both basic compilers have a free version that is fine for small programs.

The language is also very easy to program in: it's almost like writing in english.
Thanks dougy83
I still dont beleive that i can make the program my self if you are interested in developing the code i am very serious about paying for it. If i had code to start with then edit i would be fine but i have no knowledge in code.

Thanks for your reply guys i hope someone will be able to help me

mvs sarma

Well-Known Member
Thanks dougy83
I still dont beleive that i can make the program my self if you are interested in developing the code i am very serious about paying for it. If i had code to start with then edit i would be fine but i have no knowledge in code.

Thanks for your reply guys i hope someone will be able to help me
If i am correct that you are a student,
at the student level you would be able to do it in a time frame of 10 to 15 days of serious learning. perhaps don't expect others to write your software even by payment, as it wont help you in reality.

Last edited:

wired4au

New Member
If i am correct that you are a student,
at the student level you would be able to do it in a time frame of 10 to 15 days of serious learning. perhaps don't expect others to write your software even by payment, as it wont help you in reality.
For the second time i am not a student if you cant help me then please tell me were i can go for help.

blueroomelectronics

Well-Known Member
There is a 12F683 simulator on Oshonsofts site, they even have a BASIC compiler for it.

What's the purpose of the device?

Last edited:

dougy83

Well-Known Member
What's the purpose of the device?
Well, obviously it's for a machine that goes 'ping'.

blueroomelectronics

Well-Known Member
That's an awesome machine.

Pommie

Well-Known Member
The difference with this and the dear chaser is that this is using a 12 (actually 16) series chip. I just had a quick play with boostc and this produces a frequency of 1200Hz on the CCP1 output.
Code:
#include <system.h>
#pragma DATA _CONFIG, _MCLRE_ON&_WDT_OFF&_INTOSCIO
#pragma CLOCK_FREQ 4000000

#define Freq 1200                   //frequency in Hz
#define Cycles 1000000/Freq/2       //cycles for half period

volatile int ccpr1 @CCPR1L;
volatile int tmr1 @TMR1L;

void main(){
unsigned int count;
trisio = 0b11111011;                //GP2 output
t1con=1;                            //timer 1 on
ccp1con=0b1000;                     //compare mode set output
count=0;                            //init count
while(1){                           //loop forever
ccpr1=count;                    //set compare = count
count+=Cycles;                  //calc next count
while(!pir1.CCP1IF);            //wait for match
pir1.CCP1IF=0;                  //clear bit
ccp1con^=1;                     //toggle CCP mode
}
}
To make it pulsed would be really simple.

Mike.
Edit, above is untested.

Last edited:

blueroomelectronics

Well-Known Member
Is this a deer chaser?

wired4au

New Member
Is this a deer chaser?
Its actually to call predators mainly fox's used in the capture and control of feral animals hence why i need to adjust the tone.

Status
Not open for further replies.