PROFET shield allows the use of high current electronics in conjunction with the Arduino.
In this blog post, we will use the PROFET to power a 12v dc motor fan stacked with an Arduino
*Connect your 12v battery’s positive wire to BAT+ and your negative wire to GND as shown in the figure above
*Connect the dc fan’s positive wire to OUT1 and the negative wire to GND
Note: although the PROFET shield is stacked with my Arduino, it appears that the PROFET is not supplying electricity to the Arduino itself. It’s understandable if Infineon designed it this way to protect the Arduino from over voltage. Would be nice if Infineon would expand on this issue since some makers would like their shield to supply the Arduino like some motor shields do that convert 12v to 5v for the Arduino.
For this simplified example on how to run the fan motor, we will use the following pins: IN1 and LED1
IN1 – input1 corresponds to the OUT1 of your shield, supplying power to this pin signals the OUT1 to output power to the component it is connected to.
LED1 – this corresponds to the LED1 in your shield. It is ideal to program this along with the corresponding IN pins for better user feedback.
The corresponding code is pretty simple. Explanations are in the code’s comments
void setup() {
pinMode(4, OUTPUT);//LED1 pin
pinMode(9, OUTPUT);//IN1 pin
}
void loop() {
digitalWrite(4, HIGH);//LED1 on
digitalWrite(9, HIGH);//OUT1 on
//if you want to run a blink example
//delay(5000)//wait for 5 seconds
//digitalWrite(4, LOW);//LED1 off
//digitalWrite(9, LOW);//OUT1 off
//delay(5000)//wait for 5 seconds
}
Relation to the project
Temperatures in the coastline can be pretty extreme. Components might overheat. A cooling system is handy in case the situation arises. The 12V DC fan that I’m using is a PC cooling fan. It will turn on if programmed in conjunction with the DPS368 sensor.