Demonstrates the MAX44000 library and some of the features of the MAX44000
Dependencies: MAX44000 ard2pmod mbed
Fork of ALS_ARD2PMOD_Demo by
MAX44000PMB1 Demonstration
This demonstrates some of the capabilities of the MAX44000. This is written to work with the MAXREFDES72# adapter board and the MAX44000PMB1 peripheral module. It uses the standard Arduino pin names and it will compile for most arduino form-factor mbed boards. To run this demonstration you will need:
- MAX44000PMB1 Ambient Light / Proximity Sensor Peripheral Module
- MAXREFDES72# Pmod Adapter for Arduino Platforms
- An mbed enabled board with an Arduino compatible socket. We recommend the MAX32600MBED
In this demonstration the LEDs are changed based on data from the sensor.
- LED1 toggles when something is first detected by the proximity sensor.
- LED2 indicates when the Ambient Light Sensor reads greater than a set value (alsLim).
- LED3 will stay on whenever something is detected by the proximity sensor and stay on for an additional 5s after it is no longer detected.
Note: Some boards use D13 for an LED signal, so this example uses the second row (row B, pins 7 through 12) of the Pmod connector.
Tested platform boards
Links to external supporting material
- MAX44000PMB1 Ambient Light / Proximity Sensor Peripheral Module
- MAXREFDES72# Pmod Adapter for Arduino Platforms
- MAX32600MBED
History
Changed drive strength to 10mA (down from 110mA). This reduces the sensitivity and range of the proximity sensor, but it is compatible with MAX44000PMB1 boards that were built with 33 Ohm resistors inline with the power supply.
2016-10-19, by switches [Wed, 19 Oct 2016 17:11:00 +0000] rev 13
Changed drive strength to 10mA (down from 110mA). This reduces the sensitivity and range of the proximity sensor, but it is compatible with MAX44000PMB1 boards that were built with 33 Ohm resistors inline with the power supply.
Removed unused files
2016-05-05, by switches [Thu, 05 May 2016 17:35:12 +0000] rev 12
Removed unused files
Cleaned up documentation
2016-05-04, by switches [Wed, 04 May 2016 18:04:14 +0000] rev 11
Cleaned up documentation
Removed input definitions on D12 and D13
2016-05-04, by switches [Wed, 04 May 2016 16:40:23 +0000] rev 10
Removed input definitions on D12 and D13
MAX44000 Demo. draft for release
2016-05-04, by switches [Wed, 04 May 2016 16:39:08 +0000] rev 9
MAX44000 Demo. draft for release
Added MAX32600MBED to list of tested boards
2016-04-08, by switches [Fri, 08 Apr 2016 22:21:11 +0000] rev 8
Added MAX32600MBED to list of tested boards
Added namespace to PMOD_TYPE
2016-04-08, by switches [Fri, 08 Apr 2016 22:18:06 +0000] rev 7
Added namespace to PMOD_TYPE
Publishing for sharing
2016-04-08, by switches [Fri, 08 Apr 2016 21:02:51 +0000] rev 6
Publishing for sharing
Committing ard2pmod demo code for MAX44000 I2C ambient light sensor
2014-11-26, by switches [Wed, 26 Nov 2014 00:53:17 +0000] rev 5
Committing ard2pmod demo code for MAX44000 I2C ambient light sensor
Fixed ALS data reading
2014-06-30, by gsteiert [Mon, 30 Jun 2014 22:32:02 +0000] rev 4
Fixed ALS data reading