PID thermostat Issue
Several years ago, Darrel (god rest his soul) and Henrik helped me no end in developing a 4 channel controller for my reptiles. I've used this code as a basis to develop simplified version, and to see...
View ArticleUsing floating point
***DELETED*** Decided to move this to the PBP forum - more activity there.
View ArticleUsing floating point
First off, I should mention that math and I don't get along very well..... :) I doing a complete redesign of my charcoal smoker temperature controller. It worked very well, but I made some hardware...
View ArticleHserin amount
I've found some threads that confirm the problem I'm having but none that provide a resolution. Why doesn't this work: HSERIN 1, [STR DAT\800\"@"] But this does? HSERIN 1, [STR DAT\255\"@"] Is the...
View ArticleInteger Arithmetic Assistance Required
Hi All, I need some assistance with PBP3 integer arithmetic. I am working on an RGB LED application where the intensity of each of the RGB LED's is PWM controlled. The PWM will be controlled by slide...
View Article10-Bit PWM using PIC16F1509
Hi All, I am working my way through the process of setting up a 10-Bit PWM channel using a PIC16F1509 and have hit a major hurdle - I am stumped and don't know what to do. My project is for an RGB LED...
View ArticleHow to read ADC data from TSL2561 (Light sensor) in I2C Picbasic.
Hi, anyone who know how to read adc data from this device using I2C picbasic. Datasheet:http://www.adafruit.com/datasheets/TSL2561.pdf Please help for example picbasic code.
View ArticleQuickest way to get highest set bit on port in to a variable?
Hi. I have eight sensors with digital output connected to a port and now I want to in the quickest way get only the highest set bit in to a variable. if port = 110000 I want var = 000000 if port =...
View ArticleInterrupts and Sleep help 16f818
Hi thank you for readingÂ… Using a 16f818/819 I am attempting to put something together that is asleep most of the time and only wakes up for a minute or so to read a display when a button is pressedÂ…To...
View ArticlePIC 18F1330 - first time, hard time - blink that LED
Hello, I'm using a PIC 18F1330 the first time... and it is not easy. I'm trying to make the LED blink on PORTB.1 . My hw is simple; the oscillator is an external 8MHz crystal. I went through lots of...
View Articledht22 using bit field array and ext references
I thought I would have a go at making a better dht reading routine , note this code uses a 64mhz clk that conveniently provides a 1uS increment with for a timer prescale of 16. if you choose a...
View Articleold pic chips
i have some pic chips that i don't expect to ever use , rather than consign them as landfill i'm prepared to give them away at my cost. they are all dip chips and comprise 3x16f84, 2x16f84a ,2x12c509...
View ArticleProper Technique of Setting Config Values
Hello, What is the proper technique for setting configuration values? The below works fine, but, being all in one line, it is hard to read vs the older style below it. #CONFIG __config...
View ArticleUsb to ttl modules - connection to pics at 3.3v
HI Guys, I have had a need to use a number of USB to TTL modules for a project Most have either been the PLH2303 or CP2102 modules one problem i had found was that when the USB module was connected to...
View Article18f14k22 portb.5 always high using hserout
Oops - - Should be 18f14k22 Hi I cannot figure out why, when using HSEROUT, on PORTB.7, PORTB.5 is high no matter what I try. Making PORTB = 0 on the first line has no effect either Actually, when bit...
View Articlehow to use external crystal?
I am trying to use a 20 MHz crystal with a PIC16F886. When I select the external HS crystal in various ways it does not work rather the PIC runs at 4 MHZ, even tho the define is for OSC 20. This is...
View ArticleHow to setup 38kHz PWM with PIC18F1330
Hi there, I'm trying to setup a 38kHz PWM with a PIC18F1330. My circuit is as simple as possible for tests: a blinking "I'm alive" LED and a 8MHz crystal. Don't get it... Code: ' Fuses PIC18F1330 for...
View Article16f818 Fuses
Hi all. 1) Using the internal oscillator to do some basic stuff which is working great (Surprise to me ) But now I want to use the I/O ports tied up with the oscillator output.... I am using...
View ArticleCan't get SST25VF032B to work
I'm using the same footprint as a FM25V10 and the SST25VF032B appears to have almost the exact same instructions as the FM25V10. The problem is, no matter what commands I try, reading or writing...
View Article