Now we take a look at the second function of the VCNL4020 – ambient light The ambient light capability of the VCNL4020 can be used with the PIC18F56Q71 to measure changes in surrounding illumination and present the readings directly on …
-
-
In this example The VCNL4020 proximity sensor provides a useful next step for the PIC18F56Q71 Curiosity Nano Explorer projects because it introduces an optical sensing device whose output can change rapidly as an object moves toward or away from the …
-
On the Nano explorer there is an MCP9808, so we will add the ability to use this sensor with the OLED. So we will modify the previous OLED example to add this. The MCP9808 temperature sensor adds a practical measurement …
-
The Nano Explorer features an OLED display, this makes it an ideal first step to making projects. We can then take sensors for example, like the MCP9808 on the Nano Explorer board and display its values. Using an OLED display …
-
The PIC18F56Q71 Curiosity Nano has a good old LED on it so lets do the usual basic example. With the development environment already configured in Visual Studio Code, the example concentrates on the small amount of firmware required to configure …
-
The PIC18F56Q71 Curiosity Nano provides a compact development platform for experimenting with the PIC18-Q71 family without requiring a separate programmer or debugger. The board contains the PIC18F56Q71 itself, an onboard programming and debugging interface, a user-controllable LED, a pushbutton and …
-
Timers are crucial in PIC microcontroller programming for delay generation, frequency measurement, and periodic event triggering. However, because timers are limited in size (8-bit, 16-bit), they overflow when they exceed their maximum value. Handling timer overflows correctly is essential to …
-
Structs (struct) and Enums (enum) are powerful features in Embedded C programming that allow better organization of data. In PIC microcontrollers, these help in managing sensor data, configurations, registers, and peripheral settings efficiently. This tutorial will cover: What are Structs …
-
Preprocessor directives and macros in C for PIC microcontrollers allow you to optimize code, improve readability, and increase efficiency. These directives are processed before compilation, making them powerful tools for defining constants, creating reusable code snippets, and conditional compilation. This …
-
Tutorials
Understanding Pointers and Memory Management in Embedded C for PIC Microcontrollers
by shedboy71Pointers and memory management are crucial in embedded C programming for PIC microcontrollers. Efficient use of pointers helps optimize memory, increase execution speed, and improve code reusability. This tutorial will cover pointers, memory allocation, and best practices in embedded systems. …
