Apr 12, 2021
02:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 12, 2021
02:10 PM
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;
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
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
Solved! Go to Solution.
Labels
- Labels:
-
ispn:20503:1:0
-
l1:144:1:0
-
l2:268:1:0
-
l3:273:1:0
- Tags:
- IFX
1 Solution
Apr 18, 2021
08:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 18, 2021
08:18 AM
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
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
1 Reply
Apr 18, 2021
08:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 18, 2021
08:18 AM
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
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