Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 988 Bytes

README.adoc

File metadata and controls

14 lines (8 loc) · 988 Bytes

Wokwi MCP9808

This is a Wokwi custom chip implementation for the MCP9808 temperature sensor. It is modelled after the Adafruit breakout board.

Installation

In a Wokwi project add a new custom chip. Copy the contents of mcp9808.chip.json into the custom chip’s json file, and mcp9808.chip.c in the c implementation file.

Use the library manager to add a suitable library to the project, e.g. the Adafruit MCP9808 Library library.

Wire the custom chip to the microcontroller. The chip needs VCC, GND, SCL and SDA connections.

arduino wiring
Figure 1. Example wiring for Arduino Mega