My own brain board

Hardware inside and outside of the ECU
Post Reply
Ahmad
Posts: 33
Joined: Mon Aug 12, 2019 10:44 pm
Location: Iran

My own brain board

Post by Ahmad »

After 5 days, my brain board pcb is finished :?
STM32F407V_Brain_Ahmad.png
STM32F407V_Brain_Ahmad.png (285.8 KiB) Viewed 9205 times
I want to use screw-less connector(MX250B-3.5) for mother board, because the test engine is a stationary generator.
Max250B-3.5.jpg
Max250B-3.5.jpg (98.66 KiB) Viewed 9205 times
Any comment?
Last edited by Ahmad on Thu Sep 12, 2019 5:42 pm, edited 2 times in total.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: My own brain board

Post by AndreyB »

I would recommend having 4 status LEDs for firmware diagnostics, see https://rusefi.com/forum/viewtopic.php?f=4&t=381

Without schematics with just a picture there is too little information.

Why do you believe that a new brain board is necessary? Looks like there are SO many boards :)
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Abricos
contributor
contributor
Posts: 849
Joined: Mon Aug 18, 2014 12:32 am
Location: Carteret, NJ 07008

Re: My own brain board

Post by Abricos »

LED ?
STM32F407V_Brain_Ahmad__01.png
STM32F407V_Brain_Ahmad__01.png (292.69 KiB) Viewed 9193 times
Ahmad
Posts: 33
Joined: Mon Aug 12, 2019 10:44 pm
Location: Iran

Re: My own brain board

Post by Ahmad »

Thanks for new topic.
LEDs can be placed on mother board instead of brain board. The brain board may be used for other projects.
I use Altium and our local PCB makers have some limits on manufacturing (clearance, pad/via size, ...).
The price and size of an STM32F4Discovery and its extra components lead me to make my own brain board.
I want to test RusEfi code for testing and learning, because my experiences is low level programming and RusEfi code is high level.
Now my doubt is connector selection for mother board. I want to have some flexibility on wiring.
Last edited by Ahmad on Wed Sep 11, 2019 2:41 pm, edited 2 times in total.
Ahmad
Posts: 33
Joined: Mon Aug 12, 2019 10:44 pm
Location: Iran

Re: My own brain board

Post by Ahmad »

Abricos wrote:
Wed Sep 11, 2019 1:32 pm
LED ?
STM32F407V_Brain_Ahmad__01.png
4 LEDs are for 3.3V, USB5V, SDcard and Debug.
Schematic:
Attachments
Brain_Board_Sch_Ahmad_V1.pdf
(810.73 KiB) Downloaded 256 times
Ahmad
Posts: 33
Joined: Mon Aug 12, 2019 10:44 pm
Location: Iran

Re: My own brain board

Post by Ahmad »

I have another question.
Is the free Tuner Studio best choice for monitoring/tuning?
May last project was a generator controller/monitoring and I wrote my own software.
Attachments
mCHP.png
mCHP.png (151.15 KiB) Viewed 9189 times
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: My own brain board

Post by kb1gtt »

Best choice is a vague term. It's free, and it works. For many that makes it the best. However best is in the eyes of the beholder. The console also several features which are not options in TS.
Welcome to the friendlier side of internet crazy :)
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: My own brain board

Post by AndreyB »

Ahmad wrote:
Wed Sep 11, 2019 1:47 pm
LED Debug.
So you have one debug LED that's something! I would recommend at least two debug LEDs. Please be aware that you would need to compile your own firmware if you want your FATAL ERROR debug LED to be on a custom pid, FATAL ERROR could not be adjusted via configuration by design.

rusEfi stm32f407 default firmware uses

Code: Select all

#define LED_ERROR_BRAIN_PIN GPIOD_14
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Ahmad
Posts: 33
Joined: Mon Aug 12, 2019 10:44 pm
Location: Iran

Re: My own brain board

Post by Ahmad »

russian wrote:
Wed Sep 11, 2019 10:05 pm
So you have one debug LED that's something! I would recommend at least two debug LEDs. Please be aware that you would need to compile your own firmware if you want your FATAL ERROR debug LED to be on a custom pin, FATAL ERROR could not be adjusted via configuration by design.
rusEfi stm32f407 default firmware uses

Code: Select all

#define LED_ERROR_BRAIN_PIN GPIOD_14
Thanks to notification Andrey
I'm drawing mother board and will connect any unused pin to a LED :)
but I don't understand "FATAL ERROR could not be adjusted via configuration by design".
you means, I can't change pin definitions in your source code and then compile?
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: My own brain board

Post by AndreyB »

no, i only mean it could not be adjusted after compiling. everyghing else could be sdjusted via tunerstudio but not that.

if you can recompile you are good. it would be easier to use standard official binaries
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
Ahmad
Posts: 33
Joined: Mon Aug 12, 2019 10:44 pm
Location: Iran

Re: My own brain board

Post by Ahmad »

My experimental ECU board is complete and now i want to edit firmware to match it.
the board consist of:
- STM32F407V module
- L9779 module for Digital I/O, Stepper motor Driver(we have gas mixer instead of injectors), ...
- CJ125(TQFP) module for Lambda
- IGBT module with current sense for ignition
- LAN (w5500) module
- RS485 (ADM2587E) module
- WiFi(ESP8266) module with current softener supply
- TLE9201SG for ETB
Attachments
AhmadECU.png
AhmadECU.png (220.81 KiB) Viewed 8837 times
Post Reply