Quantcast
Channel: MEL PICBASIC Forum
Browsing all 4743 articles
Browse latest View live

PIC USB in and USB Out

Good day I've got an USB RFID scanner that connects to a PC as an HID (human interface device). When you scan a chip a 10 digit number will be sent to the PC as text. I want to cut the USB cable and...

View Article


CON vs. =

Is there any difference or advantage to declaring a constant using CON vs. using an = sign to assign a variable value? i.e widget CON 155 vs. widget = 155 Using just the = sign would require declaring...

View Article


Good quality cable needed

Some few years ago I ran across a specialized cable for RS485 data communication. The cable was double shielded, heavy duty jacket, two power conductors and a separate twisted pair for data, not sure...

View Article

two bytes

Below I have code where I get serin2 v3.byte1, I must echo back serout2 v3.byte1 to get serin2 v3.byte0, now when I lcdout v3.byte1 I get 8 and when I lcdout byte0 I get C both of these are correct and...

View Article

Image may be NSFW.
Clik here to view.

Comic for February 10, 2013

View Article


Help with cleaning of AC please

I have one capacitor type circuit with bridge and zener to bring down the voltage from 200VAC to 12V DC. I then connect the PIR module after a 7805 which provides trigger to my PIC based on any human...

View Article

Image may be NSFW.
Clik here to view.

need code for ir on/off switch 12f629

please help i need the code that work with 12f629 for the circuit that work as on \off switch using any remote control (i.e it can save ir command from remot ) i think that i use pulsin command in the...

View Article

Concatenation

Hi, I have a trivial problem, that i have been wracking my brains over for the last week. Getting dumber as i get older :frown: The idea is that a sequence of infra red LED's gets turned on in relation...

View Article


LED 'Dot' Bargraph Issues - Newbie Code!

Hello all. I have a PIC16F88 with ADC on PortA.0. I am measuring the voltage on a supply rail from 0-5VCD. I have a 35 LED display (3mm LEDs each) that is wired in a 7x5 matrix. I only want one LED to...

View Article


Image may be NSFW.
Clik here to view.

Comic for February 11, 2013

View Article

what have I done now 306 error

I get all this below the file compiles ok and program seems to work Executing: "C:\PBP\PBPMPLAB.BAT" -ampasmwin -k# -p16F877 "IQ Test Unit.BAS" Executing: "C:\PBP\PBPW.EXE" -ampasmwin -k# -p16F877 "IQ...

View Article

Best way to use USART/HSERIN

I'm working on a project where there will be one PIC as a master controller to adjust LED brightness & motor control. I want to link this master PIC to the motor/LED chips via USART in a chain (all...

View Article

Olympic Timer download

Is Melanie's Olympic Timer available as a download of PBP commands, not just a PDF? I want to use parts of the code (just learning about timers now), and want to strip all the non-essential materials...

View Article


Image may be NSFW.
Clik here to view.

Comic for February 12, 2013

View Article

AD9850 DDS code

I have bought a cheap DDS module from CHina and want to start by producing a fixed output of 500kHz, there is no LCD or rotary encoder as yet; This is my code: include "modedefs.bas" pause 1000; allow...

View Article


Image may be NSFW.
Clik here to view.

Comic for February 13, 2013

View Article

SD-CARD: open two files

I created a data logger with pic18F45550 and sd-cadr 1GB with SDFS program. I would like to store the values ​​of two temperatures: temp1 and temp2 , every 10 seconds. I want to open two files in the...

View Article


Image may be NSFW.
Clik here to view.

Comic for February 14, 2013

View Article

Frequency reducer

I have a 12F683 pic recieving a stream of pulses from a device. The mark space ratio is always 50% but the speed of the pulses varies from say 1hz upto 150hz. Now what i want to do is time/measure the...

View Article

Image may be NSFW.
Clik here to view.

Comic for February 15, 2013

View Article
Browsing all 4743 articles
Browse latest View live