In this post we will look at analog to digital conversion or ADC on the PIC32 microcontroller. The data in our world exists in analog format, however computers are digital by nature. What this means is that to allow the microcontroller to interact with our world we must use an Analog to Digital Converter. The […]
The USART module on board the PIC32 microcontroller is a peripheral that has been there since the very early days of computing. The protocol used by the USART module has compatibility with the RS232 communication ports that were previously available on computers. The USART module is one of my favorite peripherals. It is simple to […]
In the last post we looked at using the PIC32 microcontroller as a timer. In this post we will look at using the PIC32 as a counter. The only difference is instead of using the PIC32 to count internal pulses, we will count external pulses of a pushbutton.
Sometimes it it necessary to allow your microcontroller to use the onboard timer to perform certain tasks. The PIC32 has a timer which can count internal pulses as well as the pulses of external clock sources. Generally when counting internal clock pulses we refer to the Timer module as a “Timer” and when counting external […]
Let’s say you are doing something and your phone rings, you would like to answer your phone wont you? So you stop what you are doing and answer you phone. After you are finished talking you return to whatever task it was you were doing. In the same way the PIC32 microcontroller provides a mechanism […]
In the last post we looked at performing output with the PIC32 microcontroller. In this post we will look at using the PIC32MX270F256D microcontroller for the purpose of reading a pushbutton switch.
The PIC32MX270F256D is a powerful microcontroller. Unlike the many ARM variants that require setting up a lot of complex clocks and leaves you totally dependent on the software provided by the manufacturer, the PIC32 is not like this. With the PIC32 is is possible that you will be able to write your own drivers and […]
Interactive Computing After getting my STM32 microcontroller to read quaterion data from an MPU 6050 IMU, I decided to do a little demo to test how accurate the input is for things such as 3D control. Looking around for a good 3D framework to work with I decided to use the JavaFX 3D graphics framework […]
MPU6050 IMU With all this rage about using and programming drones and other robots, the word “IMU” has become to be understood by many persons. An IMU or Inertial Measurement Unit is an important component of robotic systems. The IMU is essentially uses and “fuses” together data from other sensors which is then used to […]
NRF24L01+ When you are looking to add wireless communications to your project, you may be bombarded by a variety of sensors and modules. Your options include WiFi, Bluetooth, LoRa among others. However the NRF24L01+ modules are cheap and readily available and can allow communication wirelessly on the Industrial, Scientific and Medical band (ISM) band. This […]
PIC32 vs STM32 For years the “Holy War” of microcontroller battles has been PIC and AVR, and whilst the battle in the 8-bit arena is yet to be “officially” decided. I say “officially” because with Microchip acquiring Atmel, I guess we know who the winner is (here’s a hint: it’s Red not Blue). However, it […]
Switching Solar Charge Controller In the last post we looked at a basic overview of solar power systems. We looked at the various components of solar power systems as well as choosing the best components for your own system. One such component we looked at were solar charge controllers. These charge controllers are of many […]
Solar Charge Controllers Many persons are interested in setting up solar panels to power their homes and businesses. However most persons aren’t aware of the aspects of how to set up a small off-grid solar system. In this post I take you through the basics of setting up a small off-grid solar system in your […]
STM32F030F4P6 ARM microcontrollers are the future. Despite the claims that 32 bit will surpass 8 bit over the years, we have finally reached the point where for certain projects it may actually be more economical to use 32 bit devices. We have seen a drastic decrease in the price of 32 bit microcontrollers, and the […]
ST7735 Despite the advent of touchscreens in embedded systems today, sometimes there are applications where an LCD can be used depending on your design. Upon searching for a working LCD module with the STM32F103C8T6 microcontroller and MikroC for ARM, I was unable to find one that was easy to use and understand. So I modified […]