Blue Pill + ESP8266 + TJA1050

Post Reply
damian.lo
Posts: 123
Joined: Sat Dec 22, 2018 12:46 pm
Location: Poland

Blue Pill + ESP8266 + TJA1050

Post by damian.lo »

Hi all,

I will try to ask here, I hope this topic will be in good place here. If not very sorry - please moderator to move to right place.
According to my question with check engine light, speedometer and rest of signals necessary to my car here:
viewtopic.php?f=7&t=770
In meantime, when maybe Johannes or someone else will help me (I hope so ;) to go deeper into code of his small project:
https://github.com/jsphuebner/stm32-car
I want to ask for hardware doubt. For wifi - no problem, it should be working well. I have question to CAN bus module. For Blue Pill I can't to use MCP2515, but I think direct serial TJA1050 module?
This should be working like on picture?
I need this module only for CAN messaging in fact only, so not other parts are needed.
I know, that maybe faster will be to use only v3 board from Johannes, but for now I even don't know if I will be able to go further with programming in code::blocks - or even modify Johannes sketch :)
Attachments
Schemat.jpg
Isaac96
Posts: 656
Joined: Sat Oct 05, 2019 6:50 pm
Location: Northern California, USA
Been thanked: 1 time
Contact:

Re: Blue Pill + ESP8266 + TJA1050

Post by Isaac96 »

Yes I believe that will work. However the TJA1050 requires 5v supply. I suggest a SN65HVD230, which is designed for 3.3v.
-Isaac
damian.lo
Posts: 123
Joined: Sat Dec 22, 2018 12:46 pm
Location: Poland

Re: Blue Pill + ESP8266 + TJA1050

Post by damian.lo »

Yes, thank You for info. I will also look at this board and then decide which take for final version. For now is only important, that this will work. I have to order one of those and try. First I have to compile somehow Johannes project and try to look at can bus. I will report then what is happen.
User avatar
mackoffgrid
Posts: 93
Joined: Thu Jan 02, 2020 10:18 am
Location: Brisbane Australia
Has thanked: 4 times

Re: Blue Pill + ESP8266 + TJA1050

Post by mackoffgrid »

The MCP2515 does work with the bluepill, I have used it in a design and I second what Isaac96 says about using the 65HVD230
https://github.com/mackelec/SolarUte
meFDCAN Arduino Library 3 FDCAN port stm32G4xx
meCAN Arduino Library 2023 version 2/3 CAN port stm32F0xx, stm32F1xx, stm32F4xx, stm32L4xx
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: Blue Pill + ESP8266 + TJA1050

Post by Bigpie »

That little esp doesn't have the space for the web interface, though you should be able to cut a lot of it down. I did start doing do but then lost interest and turned the esp01s into an alexa doorbell instead. The bigger flash sized esp8266 are a couple of quid more.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Post Reply