Built in WiFi

Discussion about various user interfaces such as web interface, displays and apps
Post Reply
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Built in WiFi

Post by Jack Bauer »

So, JLC stock the ESP8266EX chip used on the wifi module :
https://lcsc.com/product-detail/RF-Tran ... ef=jlc-SMT

And some flash memory.

So I think I'm gonna go and see if I can design a board with integrated Wifi:)

I think I'll throw together a little test board first to purge the usual mistakes like swapped rx/tx etc then go for a full integrated approach.
I'm going to need a hacksaw
doobedoobedo
Posts: 260
Joined: Sat Jan 12, 2019 12:39 am
Location: UK

Re: Built in WiFi

Post by doobedoobedo »

I know you're excited about what's possible, but do you not think you might be better off with a proven module? Something like this maybe?https://www.aliexpress.com/item/32761375635.html
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: Built in WiFi

Post by arber333 »

That would be an additional burden that would eat up your time. Did you consider this?

If you want to go this route i would recommend you copy some ESP that is easier to flash than Olimex. I have in mind Wemos D1 mini or similar.
Schematic on D1 is published online... https://wiki.wemos.cc/_media/products:d ... v3.0.0.pdf
doobedoobedo
Posts: 260
Joined: Sat Jan 12, 2019 12:39 am
Location: UK

Re: Built in WiFi

Post by doobedoobedo »

Exactly. The majority of D1 minis available have the ESP-12F module (see the link in my previous post) instead of discrete ESP8266 + flash + PCB antenna etc.
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: Built in WiFi

Post by johu »

I guess the point is to have JLCPCB populate the wifi components. Do they stock any modules?
No much cost to be saved as an Olimex module is like 4€ in one-off quantities.

Agreed on eating up time, integrating wifi won't be a game changer I suppose
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
57 Chevy
Posts: 37
Joined: Fri Jan 24, 2020 10:43 pm
Location: New Zealand

Re: Built in WiFi

Post by 57 Chevy »

does the wifi really work when installed inside the inverter can and underneath a car?
doobedoobedo
Posts: 260
Joined: Sat Jan 12, 2019 12:39 am
Location: UK

Re: Built in WiFi

Post by doobedoobedo »

In my leaf inverter (currently sat on the bench) it makes it out of the inverter housing, through a brick wall, to my router about 10m away.
User avatar
Kevin Sharpe
Posts: 1345
Joined: Fri Dec 14, 2018 9:24 pm
Location: Ireland and US
Been thanked: 4 times

Re: Built in WiFi

Post by Kevin Sharpe »

57 Chevy wrote: Sat Feb 08, 2020 7:46 pm does the wifi really work when installed inside the inverter can and underneath a car?
It works when buried inside the Tesla inverter case, inches from the motor windings, and underneath the car. I was very sceptical about using wifi in this environment but it seems to work reliably :)
This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
User avatar
Kevin Sharpe
Posts: 1345
Joined: Fri Dec 14, 2018 9:24 pm
Location: Ireland and US
Been thanked: 4 times

Re: Built in WiFi

Post by Kevin Sharpe »

johu wrote: Sat Feb 08, 2020 7:07 pm I guess the point is to have JLCPCB populate the wifi components. Do they stock any modules?
No much cost to be saved as an Olimex module is like 4€ in one-off quantities.
One advantage of removing modules is the long term reliability in the automotive environment. If we want to convert millions of cars then we'll need to embrace some of the reliability techniques that have been developed in the last ~100 years.
This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
MattsAwesomeStuff
Posts: 874
Joined: Fri Apr 26, 2019 5:40 pm
Has thanked: 280 times
Been thanked: 165 times

Re: Built in WiFi

Post by MattsAwesomeStuff »

From a different perspective...

Wifi is something I have screwed up. I fried a board. I connected RX and TX backwards. Probably a few other mistakes. I also had to be skeptical of it which added greatly to the "what if" network of troubleshooting other problems I had, that would've been a lot shorter chain if I had confidence that wifi and the wifi board wasn't the problem (in the end, it wasn't).

So... not to put words in your mouth, but it seems that the least enjoyable part of this open source EV movement is the service. Every different person can have a different problem a different way. It's not fun to troubleshoot, it's not interesting to solve other people's problems, it's not enjoyable to see people get roadblocked by their incompetence.

And in that light, having integrated wifi is a fantastic idea:
- It's so much less that the rest of us will do wrong.
- It's less documentation we need to write.
- It's fewer questions to answer.
- When something goes wrong, it's easier to diagnose.
- It's probably cheaper.

It's extra work to integrate, but, consider that for the time it takes to integrate, all of 2 or 3 people needing troubleshooting waste more time than that.

That said, most of those problems are not your problem, they're community problems. Whereas, the person redesigning the boards to include wifi is you. That said, how often do you end up doing the troubleshooting anyway?
arber333
Posts: 3241
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 74 times
Been thanked: 223 times
Contact:

Re: Built in WiFi

Post by arber333 »

57 Chevy wrote: Sat Feb 08, 2020 7:46 pm does the wifi really work when installed inside the inverter can and underneath a car?
Inside inverter, under hood and through a firewall. Every day.
doobedoobedo
Posts: 260
Joined: Sat Jan 12, 2019 12:39 am
Location: UK

Re: Built in WiFi

Post by doobedoobedo »

Kevin Sharpe wrote: Sat Feb 08, 2020 9:26 pm One advantage of removing modules is the long term reliability in the automotive environment. If we want to convert millions of cars then we'll need to embrace some of the reliability techniques that have been developed in the last ~100 years.
Conversely one of the advantages of using modules is that they are well tested, ubiquitous and can save you a ton of development headaches. I'd compare using a quality module for hardware to using a quality library for your software. If you need X - use this. It means you can get on with what you do best whilst leaving the bits that support your core area to experts in that other field. Sure you could roll your own everything and I know that floats some people's boat

There was a reason I linked that particular module, mainly because it's FCC approved (https://fccid.io/2AHMR-ESP12F) and the company that produces it is very active, that's the second iteration of the PCB trace aerial. Does Damian really want to be dicking around with wifi range issues?
User avatar
Kevin Sharpe
Posts: 1345
Joined: Fri Dec 14, 2018 9:24 pm
Location: Ireland and US
Been thanked: 4 times

Re: Built in WiFi

Post by Kevin Sharpe »

doobedoobedo wrote: Sat Feb 08, 2020 10:46 pm Does Damian really want to be dicking around with wifi range issues?
I think his motivation is clear (it's a test board) and maybe we should just respect that and be grateful he's prepared to share so much of his development work 8-)
Jack Bauer wrote: Sat Feb 08, 2020 4:23 pm So I think I'm gonna go and see if I can design a board with integrated Wifi:)
This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
doobedoobedo
Posts: 260
Joined: Sat Jan 12, 2019 12:39 am
Location: UK

Re: Built in WiFi

Post by doobedoobedo »

Kevin Sharpe wrote: Sun Feb 09, 2020 12:32 am
doobedoobedo wrote: Sat Feb 08, 2020 10:46 pm Does Damian really want to be dicking around with wifi range issues?
I think his motivation is clear (it's a test board) and maybe we should just respect that and be grateful he's prepared to share so much of his development work 8-)
Jack Bauer wrote: Sat Feb 08, 2020 4:23 pm So I think I'm gonna go and see if I can design a board with integrated Wifi:)
I think either you missed my point, or I could have made it better, probably the latter.
My point was that if you want a board with integrated wifi, then there are already good solutions, that one PCB trace used for the aerial will have had many man hours in it's development, the rest is standard stuff.

The original post had the tone of "look what I found on LCSC, it'd be fun roll my own wifi". If that's the case, then I'd say go for it if rolling your own is what you'd enjoy. but there is also https://lcsc.com/product-detail/WIFI-Mo ... 82891.html if what you want is just integrated wifi.
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Built in WiFi

Post by Jack Bauer »

Wow. Wasn't expecting this. So firstly I wasn't asking permission. While LCSC do stock a module and indeed JLC do share quite a bit of the same inventory, wifi modules are not among them. Probably as they don't work easily with tape and reel. The logic here is this : the less I (or anyone else) has to touch these boards the better. The cheaper they can be made the better.

Right now wifi consists of :
1)Order modules from Olimex +shipping
2)unpack and program modules
3)store modules
4)Buy through hole headers and pay shipping
5)Hand solder in the through hole header
6)Fit wifi module to board
7)Power up board and check wifi is working

If the wifi components are integrated on the pcb then it becomes :

1)Receive boards from JLC
2)Unpack boards
3)Program wifi and stm32 with Tag connect header : https://www.tag-connect.com (did i mention all new boards will have tag connect jtag?)
4)Power up and test board
5)Ship board to customer
6)Retire to Lanzarote on the profits.
I'm going to need a hacksaw
User avatar
Kevin Sharpe
Posts: 1345
Joined: Fri Dec 14, 2018 9:24 pm
Location: Ireland and US
Been thanked: 4 times

Re: Built in WiFi

Post by Kevin Sharpe »

Jack Bauer wrote: Sun Feb 09, 2020 1:57 pm 6)Retire to Lanzarote on the profits.
I hope that happens :D
This is a personal post and I disclaim all responsibility for any loss or damage which any person may suffer from reliance on the information and material in this post or any opinion, conclusion or recommendation in the information and material.
JaniK
Posts: 391
Joined: Sun Aug 25, 2019 12:39 pm
Location: Finland
Has thanked: 49 times
Been thanked: 10 times

Re: Built in WiFi

Post by JaniK »

That tag connect thing looks pro :)

Less man hours required later could be a good idea to design integrated wifi..
Any opinions are my own, unless stated otherwise. I take no responsibility if you follow my way of doing things and it doesn't work. Please double check with someone who knows what they are doing.
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: Built in WiFi

Post by dima »

I think it is cool idea! Use 802.11B - it will reach further, and probably doesn't care much about antenna accuracy :)

Both power (20.5dbm max) and standard can be set in Arduino code:

Code: Select all

WiFi.setPhyMode(WIFI_PHY_MODE_11B);
WiFi.setOutputPower(20.5);
User avatar
joromy
Posts: 371
Joined: Fri Jun 28, 2019 12:56 pm
Has thanked: 1 time
Been thanked: 3 times

Re: Built in WiFi

Post by joromy »

The olimex wifi module didn't work in my inverter. Got no signal at all!!
viewtopic.php?f=16&t=186#p2349

Had to put it on the outside.....
Thomas A. Edison “I have not failed. I've just found 10,000 ways that won't work"
57 Chevy
Posts: 37
Joined: Fri Jan 24, 2020 10:43 pm
Location: New Zealand

Re: Built in WiFi

Post by 57 Chevy »

Kevin Sharpe wrote: Sat Feb 08, 2020 9:16 pm It works when buried inside the Tesla inverter case, inches from the motor windings, and underneath the car. I was very sceptical about using wifi in this environment but it seems to work reliably :)
Thanks Kevin, that's quite impressive. My TV is six feet away from the router through a drywall and 60% of the time it works every time.
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: Built in WiFi

Post by johu »

In Leaf inverter it's also reachable from outside but I must be close to the car. Will try the 11B option, didn't know it was more stable.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
jon volk
Posts: 572
Joined: Wed Apr 10, 2019 7:47 pm
Location: Connecticut
Been thanked: 2 times

Re: Built in WiFi

Post by jon volk »

I had to be near the back of the car to get a reliable connection. I added a nodemcu as a wifi repeater in the trunk and I can be a few yards away from the car now.
Attachments
node2.PNG
node1.PNG
Formerly 92 E30 BMW Cabrio with Tesla power
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: Built in WiFi

Post by dima »

Did you make change in the code? Seriously 802.11b will go through anything, lead, metal, your skull :lol:

Code: Select all

WiFi.setPhyMode(WIFI_PHY_MODE_11B);
Post Reply