here's a thread about the melexis sensor: http://www.picbasic.co.uk/forum/archive/index.php/t-11782.html
Type: Posts; User: eggman; Keyword(s):
here's a thread about the melexis sensor: http://www.picbasic.co.uk/forum/archive/index.php/t-11782.html
here's how I set up the registers to use HPWM:
PR2 = %00011001 ' Set PWM frequency to +/- 40kHz, set to 26 for 38kHz or 28 for 36kHz
CCP1CON = %00001100 ' Mode select = PWM...
In my experience the shielded ones (some sort of aluminum shield with a small window) are much less noisy
The ones I use mostly come from old VHS decks or TV's
Thank you Darrel for pointing me in the right direction, it works fine now!
Thanks for the suggestion, but my interrupt routine works okay. I tried it but it makes no difference. Somehow it will not run the main program, it will handle all the interrupts though.
Hello everyone, I'm having trouble making my program work. I'm using DT interrupts to measure the duration of a servo pulse using CCP interrupts.
The interrupt routine works as expected but it...
Thanks Bert,
I thought of that too but assumed there would be an easier way.
regards,
eggman
Hello everyone,
I'm using DT's interrupts (very nice, thank you!) for the first time and run into a little problem which is probably easy to solve but I don't know how.
When the user pushes a...
Thank you Bruce,
You made my day!
regards,
Kees
Well, I tried to program with RB5 (PGM) pulled low, still no luck. As soon as I try to start my Pickit2 with the PIC connected it reports: Device Error - hex file not loaded. So it will no longer...
Okay, I compared all the fuses and found out this one locks it up:
@ __CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_OFF_2L & _BORV_27_2L
It is hex 08, if I change it to hex 0F all is fine. Has to do with...
Thank you Bruce, tried it, and another chip locked up, good hint though.
Any other ideas?
Thanks
Hi everyone,
I'm trying to make an 80 year countdown timer for an art project using a PIC18F1220. I'm using MPASM and PBP2.60.
When I copy the configs from P18F1220.INC file and paste them in my...
here's one for you
http://www.bpesolutions.com/a.ServoControl.html#anchor283241
Instead of led = 1 or led = 0 use this: TRISIO.2 = 0 or TRISIO.2 = 1
You have to connect your IR led to GPIO.2, not GPIO.5
Toggling TRISIO.2 will modulate your IR led
have a look at http://www.ezweblynx.com/ their little webserver can do UDP and has inbuilt adc capabilities
You should modulate your signal on a carrier of about 38 kHz. You can generate this with assembly or use a pic12f683 and use the internal pwm generator. Then you can modulate this signal by switching...
I ones worked with those chips, I only had it working without the 33 pF capacitor. The MCP23017 seems a better choice, it does not need an external capacitor.
No, your phone is a usb slave, not a host. You need the rs232 cable. They are cheap so why not buy one?
plenty of cables available, for example here:
http://ucables.com/ref/NK-7210
In your circuit diagram you try to send serial data to a usb connector which will never work. You need a data cable with 9 pin D connector.
You can set up the sensor to output PWM and then measure pulse length. Only trouble is, to set up the sensor you need the EVB90614 evaluation board and their somewhat buggy software. I did it this...
Hello Bob,
Yes I delved a bit further into the USB stuff, the descriptor has to tell the host it is a joystick or game controller with so many channels and buttons. I don't think this can be done...
Hello everyone,
I'm playing with the easyHID software and the great example USBDEMO (thank you mister E!) It works very well, but now I would like to program my PIC to act as a game controller so it...
Hmm that's a good idea, will try, thanks