Can we have multiple 1-wire devices on single pin?
Arduino supports that, but I have not found anything about for that in PBP reference manual... I want to hook up 4 pcs of DS18B20 to single pin. As I have read, each has unique identifier, so it should...
View ArticleHersin quick question
Hi Thank you for reading I am using:- HSERIN 5000, Timeout, [char] IF (char="A") THEN GOSUB somewhere ENDIF Just to check a char and turn on an output (via gosub) if that char is same as recieved ........
View ArticleUltrasonic sensor, serial communication.
Hi Folks, I need a little help with this task. I want to read data from Ultrasonic distance meter which put out every 100ms serial data. The protocol is here: Attachment 8945 The captured data looks...
View ArticleBME280 sensor.
Has anyone been able to interface the BME280 temp, humidity and pressure sensor to PBP? I've been messing with it for two days. Getting temperature to read correctly (at least I think it is) took a...
View ArticlePWM/HPWM Stepper Motor Controller
Hi, I'm just getting into a project that I want to control the speed/direction of a stepper motor using a stepper motor driver/controller which seems pretty straight forward. At least for controlling...
View ArticleHSEROUT of array of data with termination on a null
Hi all, Having an issue with outputting data from a pic to PC via a USB-serial COM port. I have an array of 256 bytes (1048574 of these pages of bytes in fact!) What I'd like to do is simply: HSEROUT...
View ArticleCCP and timers to capture frequency
Related to , but different aspect, of "PPS understanding on 16F15313"http://www.picbasic.co.uk/forum/showthread.php?t=24129. Figured a new thread naming the issue would be better. This system receives...
View ArticlePower Saving on 16f628
Hi All Thank you for putting up with me My recent Bluetooth project is sitting on a 12v Battery ... I am now looking to save some valuable Ah ... Suggestions as to how are welcome Changes in the...
View ArticleErroneous mathematical processing?
I'm currently doing a project that involves 2 separate pic processors on 2 separate boards doing completely different things. One of the boards is more avionics based and one of its tasks is to process...
View ArticleDual 18F Program Ideas and strategy SPI and CAN.
I'm building a MITM 'Man in the Middle' CAN - CAN device to manipulate some CAN 500kbps data. I'm happy working with pic CAN rxd and txd and am using 2 x pic18F2680 32mhz joined with hardware SPI...
View ArticleHigh frequency counter
Hi, I would like to measure the frequency of a square wave signal up to 20 MHz. I do not want to pre-divide the frequency to avoid a loss of accuracy and/or increasing the measurement time. I am...
View ArticleConverting PULSIN reading to RPM, from PC Fan?
Hello. I have a simple circuit with PC fan. It's tachometer output is tied to VDD via 10K resistor and goes into PIC16F886. Fan model is AD0812UX-A7BGL-LF and rated speed is 3700 RPM. It has PWM input...
View ArticleBytes roll over sanity check
Sanity checking.. Just checking that PbPro bytes and words roll over if incremented etc beyond 255/65535? And that a 256 element byte array indexed with a byte variable will just roll over when the...
View Article1st time with battery -- 12F508
In all my years, never tried to run a pic with a battery. Have some 12F508 and will use a couple of AAA batteries. It's for an outdoor project and the pic will only power up with a water level switch,...
View ArticleSupress "MSG" in compile
HI all, I know some includes have messages ("MSG") in them to warn the user of quirks. Is there a way to suppress them so they don't come up at the bottom of every compile? It would be nice to not have...
View ArticleReplacing array member on the fly (big LCD characters idea)
Hello. I've created a large "font" from custom definable LCD characters, which look quite good. But to use with them with real software, I need a code which will translate some variable into these...
View ArticleRead state of specific bit (i.ex. of a PORT)
Hi There, I'm "reading" a 3x4 keypad matrix and want to show the user he is currently pressing a button. So I light up a LED while any key is pressed and shut if OFF when the key is released and it...
View ArticleAny elegant way of text string handling?
Hello. I'm making a LCD clock which uses 1602 LCD. I want to display day of the week according to RTC reading. However, since there are no string variables, I have to make an array, in which I put...
View ArticleHow is this data being formed from the values given?
I have a device that accepts volts and squirts out two bytes of data shown below which represent the volts. I sent some accurate volt tests into it and got the following. How are they getting those...
View ArticleSample code for USB - MIDI
Is there any sample code available to have a PIC18F4550 recognized by the PC as an (USB) MIDI device? (And yes, I know it is mainly finding the correct device descriptor...) I have been struggling with...
View Article