RF Communication over ESP, BLE or other
I need to make radio remote control with this needed specs: 1. The remote controller should be light, small and low battery consumption 2. The range is not much important. Anything between 50-150...
View ArticleComparator not tripping above 0.6V (Vref) on PIC 16F690
Hi All, I'm struggeling to get my 16F690's comparator 2 output to trip when the measured voltage gets above 0.6V (for battery level monitoring). Code: ' ====== FUSES...
View ArticleReverse polarity in Direct serial data
I was struggling to get it right with direct serial data (no rs232 drivers etc). One PIC, a 16F1827, was set to transmit RS-232 serial at TTL level and the bit 4 of BAUDCTL was set for this. The output...
View ArticleCrc Hserout Implementation
Hi To All i,m reading about crc on this thread http://www.picbasic.co.uk/forum/showthread.php?t=11790 and crc8 implementation for this code: Code: CRCÂ Â Â VAR BYTECRC_IDXÂ VAR BYTE CRC_INÂ VAR BYTE...
View ArticleCan PBP read optical encoder damn fast? :)
Hello. Say we have optical encoder from inkjet printer. It has 60 pulses per 1cm of movement. So say it is moving with 20cm per second speed, this is 60x20=1200 readings per second. So can be software...
View ArticleHow to count the time while reading ADC ?
Hi ! After a long time I re-started to use my solder station ...and I tried to build a simple switch. I need to read the ADC on 12F675 and doing two actions, one if the time is less than 2 sec, the...
View ArticleMCU with ICSP instead of PGD/PGC
I try to program MCU with ICSP programming pin but MPLAB X return "The circuit on your board may require you to slow the speed down. Please change the setting in the tool properties to low and try the...
View Article"Variable already an alias" - is there a way to avoid this?
Say I want to have following code, when on specific condition, either of subroutines will be called. Code: '1ST DIGIT DG1: AX VAR PORTD.3:BX VAR PORTC.4:CX VAR PORTC.1:DX VAR PORTC.2: EX VAR PORTD.0 FX...
View ArticleSERIN2 WAIT problem
good day to all in this forum, I am currently using PIC18f252 for receiving a data stream via UART connected to portc.6 . I use the following method: SERIN2 RX_12,396,3000,WARNE ,[WAIT("T="),STR TE\4 ]...
View ArticleHow to prevent variable going below zero?
Code: reader: adcin 0,Z pause 100 IF Z>100 AND Z<130 THEN I=I+5 IF Z<100 THEN I=I-5 if i>255 then i=255 if i<5 then i=0 HPWM 2,I,10000 XY=I gosub decoder goto reader Here is the simple...
View ArticleTesting a GSM module via Mecanique's Serial Communicator - "terminator" issue?
Hi All, I'm currently testing a SIM800L GSM module and have no probelm at all to make it work via my 18f2431 PIC. So, what's the problem? In fact, I want to make this module work also via the Serial...
View ArticleHelp with adcin and serout, using a 16F688 Chip
:confused: Need some help with using analog inputs and sending results out serial to a LCD. I am expecting to see Low_Val= 0 to 254 on a LCD screen, What I am see on the LCD is Low_Val= 1 or Low_Val=...
View Articlegood story about Microchip
So last week I was in Atlanta,Georgia. While there I went to the regional headquarters of Microchip. Due to the pandemic the building was almost empty. In the upper floors I found the Microchip office....
View ArticleUnable to execute MPASMX
I updated to PBP 3.1.2.4 and MicroCode Studio Plus 5.0.0.5 and now I have a compile error "Unable to execute MPASMX" I installed the latest MPLAB X 5.4, but I'm not able to find the MPASM.exe,...
View ArticleADC keyboard and fast response to user input, possible?
I have and ADC input and two resistor network driving it, so when no button pressed, adc reads 255. On button 1 it returns 128 and on button 2 it returns 0. Both buttons are used to control same...
View ArticleNeopixel (WS2812B) Question/s
I have a string of 8 Neopixels which I can light using a FOR/NEXT loop each cycle setting a pin HIGH/LOW to light the string (24 BYTES * 8 cycles total). So Question: After I've written all 8 pixels...
View Article8-bit Bootloader from Microchip
Hi All, I've heard about bootloaders for the last 14 years but never tried myself because I didn't have really the need for it. Today, still the same, no real need...but I'm curious to now how it works...
View Article12F683 Light Dimmer Problem
Howdy.... I've been trying to get a light dimmer working now for about a week. I did a good bit of reading about using a triac and zero cross over detector prior to taking on this project but I'm stuck...
View ArticleSerial Sharing
I have a system with 2 PIC processors and 1 RF module with a serial interface. Question is: can I connect both PICs to the input of the RF module to broadcast from both (not at the same time obviously)...
View Article