Demonstrates the MAX44000 library and some of the features of the MAX44000

Dependencies:   MAX44000 ard2pmod mbed

Fork of ALS_ARD2PMOD_Demo by Maxim Integrated

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. /media/uploads/switches/max44000pmb1_demo.jpg To run this demonstration you will need:

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. /media/uploads/switches/max44000_align.jpg

Tested platform boards

Links to external supporting material

Files at this revision

API Documentation at this revision

Comitter:
gsteiert
Date:
Sat Apr 26 03:37:00 2014 +0000
Child:
1:03aeb304d3b3
Commit message:
Tested to work with FRDM-KL25Z

Changed in this revision

MAX14661.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MAX14661.lib	Sat Apr 26 03:37:00 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/gsteiert/code/MAX14661/#c3525ee2d636
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Apr 26 03:37:00 2014 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "MAX14661.h"
+
+MAX14661 mux(D14, D15);
+DigitalOut pinRTS(D13);
+DigitalIn pinRX(D0);  // Set as input to remove load from mbedTX 
+DigitalIn pinTX(D1);  // Set as input to remove load from mbedRX
+
+int main()
+{
+    pinRTS=0; // Not Ready to Send
+    //           D0 (mbedTX)   +   PA2 (TXD)         D1 (mbedRX)   +   PA3 (RXD)
+    mux.setAB((MAX14661::SW01 | MAX14661::SW13), (MAX14661::SW02 | MAX14661::SW12));
+    pinRTS=1; // Ready to Send
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Apr 26 03:37:00 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/6473597d706e
\ No newline at end of file