PIC

Lloyd Gordon

Parasitic Plant Aficionado
Staff member
Here's my third recent PIC project. The stuff on the left is the serial port PIC programmer. The parts on the right are my attempt to interface with a Real Time Chip, DS12887 using a PIC16F84. The first stage was to check if the internal battery still works (the RTC is ~ 20 years old) by reading one of the control registers. The red LED at the right is on, indicating the battery level is good. Success!
WIN_20200624_22_13_39_Pro.jpg
 

Lloyd Gordon

Parasitic Plant Aficionado
Staff member
My latest PIC project. I had an old SHT11 temperature and humidity sensor. It has its own proprietary interface (like I2C but not enough for I2C to work). It took me a lot of figuring out to get the software to work. Here it displays 10 bit temperature on a 10 LED bar. The temperature displayed is 22.06C (The 10'th bit is hiding behind the wires to the left).
WIN_20200726_21_05_02_Pro.jpg
 

Chen

Carnivore
I've played around with an Arduino back in school, nowadays not too much. I remember seeing a sale for a Raspberry Pi kit and mused about purchasing it. I ended up not getting it because I didn't have any practical application or ideas to get the most out of the purchase.
 

Lloyd Gordon

Parasitic Plant Aficionado
Staff member
This reads a Grove Particle Sensor that detects 1 micron or bigger particles in the air. It was 0 in the kitchen until I turned the gas up, then 1 LED went on. I'll have to get a battery pack and test the outside air.
IMG_20200803_223734834.jpg
 

Z_Y

Seedling
Are you doing everything in assembly or using microchip's C compiler? I think they have 2, hi-tech C or xc8, but hi-tech C is mostly what I use.

Also I find the 18F series to be much better than the 16F series, the 16F ones sometimes bugs out during programming and I'd lose some control register, which requires a PICkit2 to reset the device. The 18F13xx series has been my favorite so far.

DS1340 is also my goto RTC. It can trickle charge a supercap as a backup supply.
 

Lloyd Gordon

Parasitic Plant Aficionado
Staff member
I use MPASM on the Microchip webserver. I like to have control over my code. I'm still playing with the 16F series but I agree that C would make sense for the 18F PIC's. I never have trouble flashing the PIC's.
I thought Hi-Tech C was discontinued for XC-8. How are you still using it?
 

Z_Y

Seedling
I have an old installation exe that I keep around. I should definitely switch over to the newer Microchip software but I haven't had a really good reason to yet.
 
Top