If you are a robot builder, there is a good chance you used an H-Bridge to drive your motors. This would have been in the form of an IC such as the SN754410 or the L293D H-Bridge IC. The problem with these H-Bridges are that they don’t usually go above 1A and when looking for […]
Sometimes it is necessary to add low cost audio to your project. While playing a WAV file would produce high quality, sometimes it is necessary to have a low cost way to add audio to your project. Sensors, low cost robots or toys may require a low cost way to add audio to the project. […]
Organic Light Emitting Diode (OLED) displays are nice displays for embedded systems because they do not require a backlight to operate and have a sharp crisp display. The SSD1306 OLED is a popular display used in embedded systems projects today because it uses the I2C protocol and unlike the industry standard HD77480 they do not […]
We examined the 3-wire SPI protocol and the 2-wire I2C protocol. The next protocol we will look at is the One Wire (OW) protocol. The One Wire protocol developed by Maxim is a protocol which uses only one wire for communication with devices on the bus. In this post we will look at the One […]
The PIC32 microcontroller includes a Real Time Clock and Calendar or RTCC module that can function independently from the CPU. This module is very robust and is low power. In this example we demonstrate reading from and writing to the the RTCC module.
The on board USB module on the PIC microcontroller is very powerful able to function as both a device and host and is excellent for data logging applications. However sometimes you require a little higher transfer speed in your embedded application. For that reason we may need to use an SD card. SD cards are […]
USB is a ubiquitous protocol in modern computing. There are many applications where we may need to use a USB Flash drive to store and read data. The PIC32MX270F256D includes an embedded USB host and in this example we interface the PIC32 to a USB flash drive and write a text file to it. This […]
Sometimes you need to increase data throughout in your application. Interrupts are powerful things that allow you to have a lot of control over what is done when, but there is a problem with interrupts. Even the fastest interrupt gives some latency in execution. This is especially noticeable during data transfer and that is the […]
There are sometimes when your program is executing and for whatever reason it fails to operate as intended and causes the program to behave erratically or the CPU may get stuck in an infinite loop for example. In such cases it may be necessary to reset the microcontroller. However there are situations where this is […]
Microcontrollers excel at one thing and that thing is computing on a power budget. Microcontrollers are many times battery operated devices and for that reason it is sometimes necessary to have mechanisms to reduce power consumption. While reducing the clock speed or the CPU and peripherals is one way to reduce power consumption the PIC32 […]
The comparator along with the operational amplifier are two of the most common analog devices that are included as peripherals in modern microcontrollers. The PIC32 is no exception. In this post we will look at using the on board op amp module of the PIC32MX270F256B microcontroller.
I2C is the protocol that we will look at in this post. Since I2C was created by Phillips in the 80’s it has found extensive use in microcontroller based systems. This is because the I2C module only requires two lines to communicate so it is versatile and can be used to allow a master to […]
In a previous module we looked at using one serial communication module on the PIC microcontroller which is the USART module. In this tutorial we look at using one of the other serial communication module of the PIC32 microcontroller, the SPI module.
In the last post we looked at the output compare module being used to generate a PWM signal. In this post we will look at using the input capture module on the PIC32. The input capture module is used for reading digital signals and measuring events via the pin it is connected. Thus the Input […]
The PIC microcontroller contains a module known as the Output Compare module which is used to generate Pulse Width Modulation signals. The Output Capture or OC module generates pulses using the timer and outputs those pulses on the microcontroller pin. The most common use of the Output Compare module is to generate PWM signals which […]