Modifying Arduino IDE for BTS7002-1EPP shield

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User21530
Level 1
Level 1
First question asked
I recieved my BTS7002-1EPP shield and the basic tests work - but I would like to modify it for my particular use case. I will need 4 buttons that will control 4 loads, each in its own channel from U1 to U4.

In the Blink IDE the inputs are defined as follows;


const int IN_1 = 9; // select the pin to switch the output on BTS700x U1
const int IN_2 = 10; // select the pin to switch the output on BTS700x U2
const int IN_3 = 11; // select the pin to switch the output on BTS700x U3
const int IN_4 = 3; // select the pin to switch the output on BTS700x U4

const int LED_1 = 4; // select the pin for LED 1 (green LED on the PROFET+2 shield)
const int LED_2 = 5; // select the pin for LED 2 (green LED on the PROFET+2 shield)
const int LED_3 = 12; // select the pin for LED 3 (green LED on the PROFET+2 shield)
const int LED_4 = 13; // select the pin for LED 4 (green LED on the PROFET+2 shield)

const int DEN1_DEN3 = 6; // select the pin to switch the diagnostic enable (ISense) for U1 and U3 on -> U1 can be measured at Analog Input A2, U3 can be measured at Analog Input A3
const int DEN2_DEN4 = 8; // select the pin to switch the diagnostic enable (ISense) for U2 and U4 on -> U2 can be measured at Analog Input A2, U4 can be measured at Analog Input A3
const int OLOFF = 7; // select the pin for the OPEN LOAD in OFF detection functionality for all 4 channels



If I need 4 digital inputs, can I modify this part? Can I use my fully custom code without using structure from here - https://github.com/Infineon/PROFET-2-12V-Arduino-Shield
0 Likes
1 Solution
Abhilash_P
Moderator
Moderator
Moderator
50 likes received 500 replies posted 250 solutions authored
Hi,

Yes, you can use the declaration code and your custom code along with it. This code is used for controlling 4 different loads with 4 digital inputs. Please make sure you are following the syntax as mentioned in the following link,

https://github.com/Infineon/PROFET-2-12V-Arduino-Shield/blob/master/PROFET_2_12V_Shield_Starting_Sof...

And also please don't forget to declare the baud rate in the beginning of the program.

While working. please adhere to the input and output conditions as mentioned in the following PROFET™ +2 12V Arduino Shield datasheet,

https://www.infineon.com/dgdl/Infineon-PROFET+2_12V_Arduino_Shield-UserManual-v01_00-EN.pdf?fileId=5...


Regards,
Abhilash P

View solution in original post

0 Likes
1 Reply
Abhilash_P
Moderator
Moderator
Moderator
50 likes received 500 replies posted 250 solutions authored
Hi,

Yes, you can use the declaration code and your custom code along with it. This code is used for controlling 4 different loads with 4 digital inputs. Please make sure you are following the syntax as mentioned in the following link,

https://github.com/Infineon/PROFET-2-12V-Arduino-Shield/blob/master/PROFET_2_12V_Shield_Starting_Sof...

And also please don't forget to declare the baud rate in the beginning of the program.

While working. please adhere to the input and output conditions as mentioned in the following PROFET™ +2 12V Arduino Shield datasheet,

https://www.infineon.com/dgdl/Infineon-PROFET+2_12V_Arduino_Shield-UserManual-v01_00-EN.pdf?fileId=5...


Regards,
Abhilash P
0 Likes