The output signal of Digital Infrared Sensor is needed to be pull high as it is NPN output. The module will output a HIGH if no object is detected and a LOW if an object is detected. In this tutorial, you are going to learn on how to use the BBFuino and SK28A to control SN-E18-B03N1.
Are you interested in building a simple robot with motors such as fighting robot? Easily, we can just use a PSC28A without programming to control the motor of the robot from PS2 controller.
BBFuino is a clone of Arduino which is specially designed to fit onto breadboard for prototyping and learning purposes. Like Arduino, it can be used to develop interactive objects like taking inputs from switches or sensors, controlling a variety of light motors and other physical outputs. BBFuino is using Atmel microcontroller Atmega328 loaded with Optiboot bootloader. This feature makes it compatible to Arduino IDE and sample codes provided by Arduino.
In this tutorial, you are going to learn how to compile the source codes (by using Cytron Technologies DIY Project ) with MPLAB v8.63 and Hi-Tech compiler v9.80.
In this tutorial (by taking Cytron Technologies DIY project as an example), you will learn on how to:
>> Installing the MPLAB X IDE and MPLAB XC8 Compiler
>> Adding the source file to MPLAB X project
>> Convert the MPLAB v8 project to MPLAB X project
>> Build the codes and load to the targeting device