Search found 157 matches

by dima
Wed Feb 26, 2020 11:21 pm
Forum: User Interface
Topic: Universal WiFi Interface
Replies: 79
Views: 23378

Re: Universal WiFi Interface

Ah I think I understand, there is a "middle" device, maybe Arduino CAN ...Damien likes to use Arduino :) that translates CAN to UART and then ESP8266 takes comma separated (self developed/propriety) format and makes a web interface out of it. A more universal solution would be to interface...
by dima
Wed Feb 26, 2020 4:19 pm
Forum: User Interface
Topic: Universal WiFi Interface
Replies: 79
Views: 23378

Re: Universal WiFi Interface

I still don't understand, what is this whole "universal" interface for? some kind of BMS? whats pushing all the UART messages (doesn't seem like Johannes inverter)
by dima
Tue Feb 25, 2020 9:13 pm
Forum: User Interface
Topic: Universal WiFi Interface
Replies: 79
Views: 23378

Re: Universal WiFi Interface

Bigpie wrote: Tue Feb 25, 2020 8:54 pm Does the update server allow code update and spiffs?
Yes .bin files. Use esp8266 library v2.6.3 (previous versions had issues)
by dima
Tue Feb 25, 2020 7:17 pm
Forum: User Interface
Topic: Universal WiFi Interface
Replies: 79
Views: 23378

Re: Universal WiFi Interface

I recommend adding these 3 lines of code for future "easy web updates" there will be a new page /update

Code: Select all

#include <ESP8266HTTPUpdateServer.h>
ESP8266HTTPUpdateServer updater;

void setup()
{
	//.....
	updater.setup(&server);
}
by dima
Mon Feb 24, 2020 8:38 pm
Forum: User Interface
Topic: Upload failed? get spinning wheel.
Replies: 3
Views: 4194

Re: Upload failed? get spinning wheel.

Since you have your custom board, maybe you have something similar to Damien's issue with Tesla board.

by dima
Tue Feb 18, 2020 4:43 pm
Forum: User Interface
Topic: Built in WiFi
Replies: 22
Views: 8215

Re: Built in WiFi

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);
by dima
Mon Feb 17, 2020 4:33 pm
Forum: User Interface
Topic: HOWTO: Flashing ESP8266
Replies: 181
Views: 65121

Re: HOWTO: Flashing ESP8266

This has been repeated but for Olimex did you solder GPIO0 to 0 (zero) Not just left it open but actually made a solder bridge to 0? Always select highest SPIFFS (1MB) and you can leave Erase Flash: Only Sketch esp8266_olimex_spiffs.png EDIT: Also I recommend updating "esp8266" boards libr...
by dima
Mon Feb 17, 2020 4:26 pm
Forum: User Interface
Topic: Universal WiFi Interface
Replies: 79
Views: 23378

Re: Universal WiFi Interface

Arduino "Debug" serial interferes with the real serial ....therefore you cannot use serial to debug. Make a dynamic web page instead.
arduino_debug_disabled.png
by dima
Thu Feb 13, 2020 5:31 pm
Forum: User Interface
Topic: Universal WiFi Interface
Replies: 79
Views: 23378

Re: Universal WiFi Interface

Tip:

GZIP all your files.

Include a compression header in Arduino web-server

Code: Select all

server.sendHeader("Content-Encoding", "gzip");
Make the compressed spiffs

Code: Select all

mkspiffs -c ./data/ -b 8192 -p 256 -s 500000 flash-spiffs.bin
by dima
Wed Feb 12, 2020 4:34 pm
Forum: User Interface
Topic: Universal WiFi Interface
Replies: 79
Views: 23378

Re: Universal WiFi Interface

A request from Arber came in to write a "true" universal web interface (originally for Labowski inverter).

Web based TTL over ESP8266. Works nicely with Johannes inverter. https://github.com/dimecho/ESP8266-XTerm
by dima
Sun Feb 09, 2020 5:20 pm
Forum: User Interface
Topic: Built in WiFi
Replies: 22
Views: 8215

Re: Built in WiFi

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);
by dima
Wed Feb 05, 2020 9:48 pm
Forum: Inverters / Motor Controllers
Topic: Serial Link not starting? [SOLVED]
Replies: 33
Views: 7551

Re: Serial Link not starting? [SOLVED]

It is a permission issue, try with sudo or this command before you run

Code: Select all

sudo stty -F /dev/ttyUSB0 115200 -parenb cs8 cstopb
No time to work on Linux, tested with Windows and Mac. Feel free to fix it.


EDIT: Linux Fixed
by dima
Tue Feb 04, 2020 7:43 pm
Forum: Inverters / Motor Controllers
Topic: Serial Link not starting? [SOLVED]
Replies: 33
Views: 7551

Re: Serial Link not starting? [SOLVED]

Do not run minicom and web interface at the same time.
by dima
Tue Feb 04, 2020 4:42 pm
Forum: Inverters / Motor Controllers
Topic: Serial Link not starting? [SOLVED]
Replies: 33
Views: 7551

Re: Serial Link not starting? [SOLVED]

Cannot just run it from a web server, you need to run "preparation script" -> "Huebner Inverter.sh" it will place proper ttyUSB into /Web/js/serial.json. It uses "php -S" command as a webserver on port 8080. The web interface will be http://127.0.0.1:8080
by dima
Sat Jan 25, 2020 9:40 pm
Forum: Inverters / Motor Controllers
Topic: Mainboard v3 future
Replies: 23
Views: 4776

Re: Mainboard v3 future

I find that on (eBay) Chinese suppliers it is a lot easier to find Triple 3-Input NAND gate (SOIC-14) than Single 3-Input ( SOT-23-6)

Maybe consider this component -> SN74HC10D
by dima
Sat Jan 25, 2020 5:46 pm
Forum: Inverters / Motor Controllers
Topic: Prices lowered
Replies: 7
Views: 1796

Re: Prices lowered

A tour of their factory. The reason I switched to JLCPCB as well for my projects :)

by dima
Mon Jan 20, 2020 10:55 pm
Forum: Inverters / Motor Controllers
Topic: Testing FOC for synchronous motor
Replies: 179
Views: 32832

Re: Testing FOC for synchronous motor

Attempted to build (under Windows) Can't seem to find timer_get_ic_value from inc_encoder.cpp (searched all files)

Used your copy of custom libopencm3 and libopeninv
source-error.png
EDIT: Changed line 587 ...compiled OK.

Code: Select all

 int measTm = timer_get_counter(REV_CNT_TIMER);
by dima
Thu Jan 16, 2020 5:23 am
Forum: User Interface
Topic: HOWTO: Flashing ESP8266
Replies: 181
Views: 65121

Re: HOWTO: Flashing ESP8266

Blue-pill has x3 different TTL UART pins... I believe you need USART#3

USART3 TX PB10
USART3 RX PB11
USART2 TX PA2
USART2 RX PA3
USART1 TX PA9
USART1 RX PA10
by dima
Sun Jan 12, 2020 5:35 pm
Forum: User Interface
Topic: HOWTO: Flashing ESP8266
Replies: 181
Views: 65121

Re: HOWTO: Flashing ESP8266

In my opinion "Blue-Pill" is a bad idea. It was great to see developers explore different options, but when Johannes discovered "cross-talk" ....do you really want to put safety and reliability into this "cheap" component? I recommend start with V2.1 learn how-to bootlo...
by dima
Tue Jan 07, 2020 6:37 pm
Forum: User Interface
Topic: HOWTO: Flashing ESP8266
Replies: 181
Views: 65121

Re: HOWTO: Flashing ESP8266

Don't forget about Web flash (.bin files) -> http://inverter/update or http://192.168.4.1/update
by dima
Thu Jan 02, 2020 9:50 pm
Forum: Inverters / Motor Controllers
Topic: Rev 3
Replies: 12
Views: 2639

Re: Rev 3

A more official link if here https://github.com/jsphuebner/inverter- ... rdv1.1.pdf

If you need 17.6kHz PWM then R40-R43 follow the drawing
PWM_R40-R43.png
by dima
Wed Nov 20, 2019 7:34 pm
Forum: Nissan
Topic: Charging-Cable Lock and Driveaway prevention
Replies: 9
Views: 1635

Re: Charging-Cable Lock and Driveaway prevention

Just came across this picture from Mustang Mach-E. That door push button looks like a nice idea.
mustang-mach-e-22-1574195953.jpg
by dima
Wed Nov 06, 2019 4:47 pm
Forum: User Interface
Topic: HOWTO: Flashing ESP8266
Replies: 181
Views: 65121

Re: HOWTO: Flashing ESP8266

Did you solder GPIO0 back to 1? Remember to "solder bridge 1 or 0" not just leave open (made that mistake before)

Also Olimex ESP is not the only choice. WeMOS D1 work just as well and they don't need any soldering. They have mini-USB works out-of-box with Arduino studio.
wemos-d1.jpg
by dima
Tue Nov 05, 2019 4:08 am
Forum: User Interface
Topic: HOWTO: Flashing ESP8266
Replies: 181
Views: 65121

Re: HOWTO: Flashing ESP8266

EDIT: Yes i get "FileNotFound". So i have to upload again? This applies to "other web interface" https://github.com/dimecho/Huebner-Inverter/releases/download/1.0/Huebner.Inverter.ESP8266.zip Sounds like you uploaded the firmware but forgot the "SPIFFS" (file-system) T...