Home Price List Order Info P955H PIC Training Course PIR & RF Data Training Course PIC Mini Training Course

PIC Training - PIR and RF Data
Imagine trying to teach English grammar to a child before allowing him or her to speak!. That is how most books approach a technical subject but we know better. We know that practical experience makes learning the theory an interesting proposition. The success has been proven with time. We have been selling PIC training courses for 15 years and trading for over 30 years.
Click Which computer language should we study
PIC Training
PIR and RF Data £136
For beginners
with some PIC experience

For Windows XP, Vista, 7, 8, 10 etc
(New January 2017)

All the items shown in the picture are supplied with the course except the batteries. We supply the battery holders without batteries. A P205 PIC programmer is included (bottom left of the picture between the book and the loud speaker) but is optional if you already have a P205, P931, P942 or P955 PIC programmer

Read chapter 1 carefully as this introduces the ideas, then quickly look through chapter 2 which has essential reference information for 16F and 18F PICs. You will refer back to chapter 2 later as you need the information.

Then as always with our training courses we jump straight in. In chapter 3 we create a simple system which uses a pyrometric motion detector to trigger a warning sound when a person moves within the range of the detector. To do this we use a GPIC14Tx module. This is a general purpose circuit fitted with a 14 pin PIC, a programming socket, a PIR socket, a 433Mhz radio frequency transmitter socket, and a 2.4Ghz radio frequency transceiver socket.

We create software for the PIC to use the PIR to trigger the warning sound, and use the sleep mode while waiting to maximise the battery life.
General purpose rf circuit

The 14 pin PIC16F1823 which we use in the GPIC14Tx is a 16F PIC. The GPIC28rf module which we use in chapter 4 can be fitted with a 28 pin 16F or 18F PIC. Later when we get to the experiments where we measure temperature we will use the PIC to convert raw data into the actual temperature. This is more easily done using an 18F PIC so we use a PIC18F25K22 in the GPIC28rf module.

In chapter 4 we experiment with a few simple programmes using the GPIC28rf module. Run the RGB LED, write text to the LCD, and use the keypad to enter numbers. Then in chapter 5 we learn about the timers and interrupts of the PIC18F25K22.

All the attachments shown in this picture are used with the GPIC28rf PCB in this course. We also use a loud speaker which is not shown.

Clockwise from quarter to 9. P205 programmer, 433Mhz receiver, HC-SR501 motion detector, keypad, 433Mhz transmitter, NRF24L01+ 2.4Ghz transceiver, DC power lead, 2 line 16 character LCD. There is also provision to fit an infrared receiver and transmitter which are not part of this course.

The GPIC28rf can be powered from the programmer or from a 4 cell battery pack or power supply plugged into the DC input socket. The DC input has a 5v regulator and a 3.3v regulator provides power for the 2.4Ghz transceiver. Both these regulators have almost zero volt drop below regulation and very low quiescent current.

This picture show the radio circuits which are included in the course hardware. On the far left is the 433Mhz transmitter fitted with a yellow antenna. Next is the 433Mhz receiver fitted with a green antenna. At the top right is a standard NRF24L01+ 2.4Ghz transceiver with a PCB track antenna. (Two of these included). At the bottom right is a NRF24L01+ 2.4Ghz transceiver with onboard power amplifier and external screw on black antenna.

Chapter 6 is an introduction to radio frequency data. We begin with a fundamental explanation of what RF is then experiment with a simple radio data link. The idea is to use a very basic transmitter and receiver so that we can understand the fundamental requirements of radio data transmission and reception. This would not be possible using the sophisticated 2.4Ghz transceiver so we start our tests using a very basic 433Mhz transmitter and receiver.

By this means we are able to understand the requirements of the makeup of the data stream. A header to synchronise the receiver, a security address to individualise our data and a few bytes to carry the actual data.

General purpose rf circuit

This is a general purpose circuit fitted with a 14 pin PIC, a programming socket, a PIR socket, a 433Mhz radio frequency transmitter socket, and a 2.4Ghz radio frequency transceiver socket.

The power supply requirements of this circuit are complicated: We need it to run for years from one set of batteries, the motion detector requires 4.5 to 20 volts, the PIC requires 2.5 to 5.5 volts, the 2.4Ghz transceiver requires 1.9 to 3.6 volts, and the battery voltage drops steadily as it runs down. We solved this problem by using two 2 cell alkaline battery packs. The PIR runs from both batteries in series while the rest of the circuit runs from battery 1.

In chapter 7 we create a remote temperature measuring system. We plug the 433Mhz transmitter into the GPIC14Tx and the 433Mhz receiver into the GPIC28rf. The GPIC14Tx has an onboard thermistor. We create software to use the PICs analogue to digital converter to measure the volt drop across the thermistor every one or two seconds. Each time the digital value is transmitted by the GPIC14Tx and received by the GPIC28rf.

We create software for the GPIC28rf to receive the data, convert it into the actual temperature then display this on the LCD.

In chapter 8 we combine the PIR software and circuit from chapter 3 with the radio data software and circuit from chapter 7 to create a central display of data from several possible PIR movement detectors.

Chapter 9 introduces the NRF24L01+ 2.4Ghz transceiver. This is a complete sophisticated transmitter and receiver constructed on a tiny chip of silicone and usually sold mounted on a small PCB with a crystal for the clock and with the antenna printed on the circuit.

The NRF24L01+ is designed to be controlled by a microcontroller so the chapter begins with a summary of the essential programming information. Setting the PIC for SPI and sending set up data to the NRF24L01+ can seem rather complex but once the outline procedure has been explained we load the NRF24L01+ library which is an integral part of the Brunning Software PIC assembler BSPWA.

Our experiments begin by programming the same software into two GPIC28rf modules. At switch on both modules set their NRF24L01+ into its receive mode. So both transceivers start by listening on the same channel. To test the system we press the S2 push button on one of the GPIC28rf modules. It immediately transmits ABCD. This is received by the second GPIC28rf module which prints the received data to its LCD. Press S2 on the second GPIC28rf and the data goes the other way.

Notice in the picture that one GPIC28rf is powered by a battery pack and one is powered by the programmer.

Once we have proven the system works we edit the software in the fixed GPIC28rf so that it automatically replies every time it receives data.

Then we pick up the battery powered system and walk out pressing S2 occasionally to test the system both ways. It is an easy way to get a feeling for the range.
We begin chapter 10 by learning how to use the Serial Peripheral Interface with the PIC16F1823. Then we programme the GPIC14Tx module so that it transmits temperature data, and programme the GPIC28rf so that it receives and prints the temperature to the LCD.

Finally in chapter 11 we are approaching the objective of this course. We plug an HC-SR501 motion detector onto the GPIC14Tx and programme the PIC to transmit data every time movement triggers the PIR.

In the last chapter we add a test system. When S3 is pressed on the master system it trasnsmits a code which instructs the PIR transmitter to transmit a regular signal so that the range can be checked. At the end of the testing we press S2 on the master and it sends a code which instructs the PIR transmitter to resume sleeping when it is not active.

All programming for this course uses PIC assembler and requires the use of the Brunning Software PIC assembler BSPWA. This assembler has very convenient built in libraries for PIC configuration, LCD, keypad, USART, real time clock, 433Mhz Tx/Rx and NRF24L01+. The 16F and 18F libraries for the 433Mhz Tx/Rx and for the NRF24L01+ are the key to this course being enjoyable right from the beginning.

PIR and RF Data PIC training course comprising.....

Book: Experimenting with PIR and RF Data
+ 2 off GPIC28rf module
+ 2 off 2 line x 16 character LCD
+ 1 off keypad
+ 1 off 4 cell battery holder
+ 1 off plug in battery lead

+ 1 off GPIC14Tx module
+ 1 off HC-SR501 motion detector
+ 2 off 2 cell battery holder
+ 1 off waterproof mylar loud speaker

+ 1 off 433Mhz transmitter
+ 1 off 433Mhz receiver
+ 2 off NRF24L01+ 2.4Ghz tranceiver
+ 1 off NRF24L01+ with PA + external antenna

+ 1 off P205 PIC programmer
+ 1 off USB to PC lead

+ 1 off BSPWA PIC assembler on CD with NRF24L01+ library

PIR and RF Data PIC training course.......... £136
including UK postage and insurance
To pay using PayPal click.....
If you already have a Brunning Software programmer which has a 7 pin programming plug (P931 P942 P955) you do not need the P205 programmer

PIR & RF Data training course without P205... £114
To pay using PayPal click.....

If you require delivery to a country other than the UK please send an email request to..... pic (at) brunningsoftware (dot) co (dot) uk

Home Price List Order Info P955H PIC Training Course PIR & RF Data Training Course PIC Mini Training Course