Author Topic: Product Design (Parking Assistant Alarm)  (Read 3643 times)

0 Members and 1 Guest are viewing this topic.

Offline ScutariusTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ca
Product Design (Parking Assistant Alarm)
« on: April 19, 2010, 10:46:51 pm »
Hi !!!

Well I got a job, my first job, and I am very enthusiastic about it, I suppose to be a hardware designer (kinda, I Have a bachelor in electronics, m.sc. in process) I my first project is a simple parking assistant alarm, this is useless product maybe, somebody just ask for this product to the company, but for me it is a good opportunity.

This is how it works, it will be a "ball" enclosure with a simple sensor and LEDs, that is all.
If the car hits the ball it flashes, (useless I think, but never mind), so I was ask to use a PIC a SQ-SEN-200 sensor and 2 LEDs


http://signalquest.com/sq-sen-200.htm
the web
 
PIC12F675, I used this sch
http://itp.nyu.edu/physcomp/sensors/Reports/SQ-SEN-200


I am coding in MikroC pro 2009, I am going to use int's, but I it is harder for me the code.

I attach the screenshots, sch and pcb, please if you think that I am doing something wrong or if I can do it better post it!I just wanna learn

I am using the battery clips from newark (56P4899) to reduce cost


1.-Bypass capacitor close to Vdd
 

Offline ScutariusTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ca
« Last Edit: April 19, 2010, 10:55:03 pm by ee.jcesar »
 

Offline TheDirty

  • Frequent Contributor
  • **
  • Posts: 440
  • Country: ca
Re: Product Design (Parking Assistant Alarm)
« Reply #2 on: April 20, 2010, 12:43:04 am »
The datasheet says it works as a switch that rattles off and on as it is moved.  I don't use PICs.  Is there an internal pullup on GP0 that you are relying on for the pullup?  Why the resistor?  Weak built in pullups are already very high resistance for a pullup and IMO should not be relied upon for this and you should have a proper external pullup.
Mark Higgins
 

Offline ScutariusTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ca
Re: Product Design (Parking Assistant Alarm)
« Reply #3 on: April 20, 2010, 12:51:35 am »
Yes, I use the internal pullup (weak) GP0

here http://signalquest.com/datasheets/SQ-SEN-200%20App%20Circuits.pdf
you can see that they propose a 100k resistor.
 

Offline TheDirty

  • Frequent Contributor
  • **
  • Posts: 440
  • Country: ca
Re: Product Design (Parking Assistant Alarm)
« Reply #4 on: April 20, 2010, 01:17:26 am »
You've actually got a hybrid of the flexible circuit, #1, and the Simple Circuit #2.  If you are going to do the flexible circuit, you will need to do exactly what they did and use the two resistors plus the filtering cap.  If you are using the simple circuit, it doesn't have R2 at all.  It doesn't actually give a value for R1 in the simple circuit.
Mark Higgins
 

Offline ScutariusTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ca
Re: Product Design (Parking Assistant Alarm)
« Reply #5 on: April 20, 2010, 01:39:43 am »
you are right, tomorrow I will be testing the pcb with components, thanks I am going to make the correction.
 

Offline ScutariusTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ca
Re: Product Design (Parking Assistant Alarm)
« Reply #6 on: April 21, 2010, 02:49:54 pm »
I add a pin header for ICSP, just I want to be sure, if I do not use MCLR as MCLR, moreover I declared it as ouput, Can I just wire it to Vpp? (if not just a Resistor to Vcc with a diode for protection)


Vpp is taken form my usb programmer so 5v it is also HVP?, I read that LVP is a pain, so I do not use this fuse, also it is important no to connect the battery while programming...


I forgot to said that I am going to power it via 2 AA batteries, I did not choose the coin battery because of the LEDs (40mA total).



http://www.instructables.com/id/Understanding-ICSP-for-PIC-Microcontrollers/

« Last Edit: April 21, 2010, 03:00:22 pm by ee.jcesar »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf