Guardian Sentinel — Getting Started
<Part 2>
The figure below shows the basic block diagram and idea of how the project will be implemented. The system will consist of two parts: a master and a slave. The master will use the MAX32630FTHR and will be connected to the LAN through an Ethernet FeatherWing. It will also include a OLED FeatherWing to display status or other useful information. The slave will use another MAX32630FTHR together with the DC Motor + Stepper FeatherWing and a gas sensor. This is the basic idea of the project architecture. Along the process of building of this project i will make the necessary changes in order to accomplish the objective of this project.
As i have mentioned previously, in this second post we would like to see in details and initial setup for all the devices used in this project. First lets take a look at the core of this project which is the MAX32630FTHR.
MAX32630FTHR
From my initial research i found that the MAX32630FTHR can be programmed using MBED OS, but unfortunately it will become obsolete or end of life this coming July. Hence while looking for other alternative, i saw the post from Alistair , mentioning about using Arduino to program the MAX32630FTHR. Here is my initial setup and the step to program the MAX32630FTHR using Arduino IDE. Below is the step to program the MAX32630FTHR with Arduino IDE. Please note that, it can be only used with Arduino IDE 1.8.x. I tried using Arduino 2.3.8, but it does not work.

Once the board is installed. I tried to program the board. The setup for programming the board is as shown in figure below

Programming the MAX32630FTHR setup.

Both the usb need to be connected. The usb on the MAX32630FTHR is for power up the device. And the usb connecting the pico is for programming purpose.
Once the this is done. I try to upload a simple Blink example, to verify. First choose the board as shown in the image below

Next choose the programmer as shown in image below

Once done, i tested the simple blink program and it works. Below is the demo video
The next thing that i would like to test is the Oled FeatherWing which i am using to display the data. For connection between the MAX32630FTHR and the oled i am using the Ethernet FeatherWing. The setup for this is shown in the figure below

Once the sample code is uploaded, the oled works.

The code for the oled is as shown below.
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 32
#define OLED_ADDR 0x3C
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire);
void setup() {
Serial.begin(9600);
delay(1000);
Serial.println("MAX32630FTHR OLED Test");
Wire.begin();
if (!display.begin(SSD1306_SWITCHCAPVCC, OLED_ADDR)) {
Serial.println("OLED not found at 0x3C");
while (1);
}
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(SSD1306_WHITE);
display.setCursor(0, 0);
display.println("Guardian Sentinel");
display.println("MAX32630FTHR");
display.println("OLED OK");
display.display();
Serial.println("OLED initialized");
}
void loop() {
}
In the next post, i will share on the Ethernet FeatherWing and also the setting up of the dashboard.