Search found 157 matches

by dima
Mon Dec 13, 2021 7:44 pm
Forum: User Interface
Topic: SWD over ESP8266
Replies: 11
Views: 7715

Re: SWD over ESP8266

All fixed for ESP8266 Core v3.0.2 and hopefully anything later.

Some cool tests you can do http://192.168.4.1/swd/hex?bootloader

Go to http://192.168.4.1/update and flash attached two files. See above posts two wire hardware mod required - both esp module and main board.
by dima
Wed Dec 08, 2021 8:05 pm
Forum: User Interface
Topic: SWD over ESP8266
Replies: 11
Views: 7715

Re: SWD over ESP8266

FYI, Latest Arduino ESP8266 Core Library v3.x does not work with SWD (Single Wire Debug) web interface flashing. They changed a lot how memory is handled, it crashes the esp and the web-server.

Use v2.7.4 for best results.
esp-core-2-7-4.png
by dima
Wed Dec 16, 2020 5:05 pm
Forum: General
Topic: Upload file types
Replies: 3
Views: 924

Re: Upload file types

Added as "Downloadable Files", any suggestions for other formats?

.cam360
.dwg
.dxf
.f3d
.fbx
.obj
.sldprt
.stl
.stp
by dima
Thu Dec 10, 2020 10:57 pm
Forum: User Interface
Topic: HOWTO: Flashing ESP8266
Replies: 181
Views: 61139

Re: HOWTO: Flashing ESP8266

No good, need TTL.
by dima
Thu Dec 10, 2020 5:00 pm
Forum: User Interface
Topic: HOWTO: Flashing ESP8266
Replies: 181
Views: 61139

Re: HOWTO: Flashing ESP8266

You are using a USB-TTL adapter right?
IMG_0802.JPG
by dima
Mon Dec 07, 2020 5:28 pm
Forum: User Interface
Topic: HOWTO: Flashing ESP8266
Replies: 181
Views: 61139

Re: HOWTO: Flashing ESP8266

This is new revision with SWD mod

"src" folder must be inside C:\FSBrowser\

"sketch"? Do you have other .ino files open? Only "FSBrowser.ino" should be open, close others.
by dima
Sun Nov 22, 2020 8:51 pm
Forum: User Interface
Topic: SWD over ESP8266
Replies: 11
Views: 7715

Re: SWD over ESP8266

Exciting news! SWD (Serial-Wire-Debugger) works now.

...code update coming soon to your web-interface ;)

Need to connect GPIO4 and 5 from Olimex to CLK and DIO on SWD port.
esp8266.png
by dima
Fri Nov 13, 2020 5:59 pm
Forum: General
Topic: 24-36-48v.. Server Power Supply C7000
Replies: 3
Views: 1314

Re: 24-36-48v.. Server Power Supply C7000

I've used 2x IBM (ARTESYN) for 24V. Isolation important! + a signal wire. (server power supplies do not turn on by themselves)
Server PSU 24v Wiring Diagram rev4.png
Server PSU 24v Wiring Diagram rev4.png (6.66 KiB) Viewed 1252 times
Here is info for the IBMs https://www.rcgroups.com/forums/showthr ... 42A-to-24V
by dima
Thu Nov 12, 2020 4:35 pm
Forum: User Interface
Topic: Sharing one ESP8266 between multiple STM32s
Replies: 10
Views: 6659

Re: Sharing one ESP8266 between multiple STM32s

You can upgrade to MOD-WIFI-ESP8266-DEV with "solder yourself" onboard option.
by dima
Tue Nov 10, 2020 5:16 am
Forum: User Interface
Topic: Sharing one ESP8266 between multiple STM32s
Replies: 10
Views: 6659

Re: Sharing one ESP8266 between multiple STM32s

johu wrote: Thu Nov 05, 2020 9:46 am Because I'm a cheap@#$&
So much work ... for just a few $(dosh)

What about control from ESP side? Don't think Olimex has two UART channels. Other ESP modules (like WeMos) have two UART channels -> TX1/RX1 and TX2/RX2

Code: Select all

Serial.swap(); //Swaps UART Channel
by dima
Sun Nov 01, 2020 8:57 pm
Forum: User Interface
Topic: HOWTO: Flashing ESP8266
Replies: 181
Views: 61139

Re: HOWTO: Flashing ESP8266

Strange, sounds like inverter has 'fastuart' but ESP does not know about it.

You can always set ESP8266:

Code: Select all

bool fastUartAvailable = false;
And try again, maybe Blue-Pill cannot operate at 921600
by dima
Sun Nov 01, 2020 6:15 pm
Forum: Inverters / Motor Controllers
Topic: Tool chain
Replies: 18
Views: 2789

Re: Tool chain

With Windows, you will need to install "Python" to build "libopencm3" + GCC + arm-none-eabi to build actual firmware.

It is not easy in Windows, I use a script to build.
by dima
Sun Nov 01, 2020 6:07 pm
Forum: User Interface
Topic: HOWTO: Flashing ESP8266
Replies: 181
Views: 61139

Re: HOWTO: Flashing ESP8266

This tell you wrong TTL speed. Check speed with 'http://192.168.4.1/baud'
by dima
Sat Sep 26, 2020 1:37 am
Forum: User Interface
Topic: Failed to update web interface
Replies: 7
Views: 5004

Re: Failed to update web interface

It looks like you uploaded something not from index.html but some github page? This is a tough spot to get out of without " Soldering GPIO0 to 0 " Arduino IDE with OTA (over-the-air) 1) Connect to ESP WiFi and choose Port as IP ESP_OTA.png 2) Install Arduino SPIFFS Uploader plug-in 3) Move...
by dima
Fri Sep 18, 2020 1:41 am
Forum: Inverters / Motor Controllers
Topic: Autotune syncofs?
Replies: 7
Views: 1778

Re: Autotune syncofs?

I have a small "tweak" and idea! But I cannot visualize it. Maybe someone can explain in a "round" perspective how angle "looks like" relative to all those magnets. I know that it is calculated by: angle = (syncofs * 360 / 65536) but how to visualize that? Is this diagr...
by dima
Fri Sep 18, 2020 1:31 am
Forum: Inverters / Motor Controllers
Topic: Send CAN message help
Replies: 25
Views: 4941

Re: Send CAN message help

Can I ask a bit shifted question, but parameter related ...When using baud rate 921600 in ESP module JSON parameters comes out fragmented (randomly) Is it possible to customize to use slightly lower (lets say 256000) baud rate?
json_921600.png
by dima
Mon Sep 07, 2020 8:24 pm
Forum: Inverters / Motor Controllers
Topic: Send CAN message help
Replies: 25
Views: 4941

Re: Send CAN message help

I thought index ids came from /include/param_prj.h

Something like "boost = 1" so something like: 1-1 = 0 (DEC) or 0x00 (HEX)? or is this completely off :oops:
by dima
Sat Sep 05, 2020 3:16 pm
Forum: User Interface
Topic: Gauge Update
Replies: 16
Views: 7828

Re: Gauge Update

So far the only real limitation I’m seeing are 20byte packets Yes I bumped into that as well, need to explore "stream" option. Otherwise every second you want to update you need to get a new "request/reply" is too slow. This example (without using JQuery): https://gist.github.co...
by dima
Thu Sep 03, 2020 1:23 am
Forum: User Interface
Topic: Gauge Update
Replies: 16
Views: 7828

Re: Gauge Update

ManuFromParis wrote: Tue Sep 01, 2020 8:20 pm Thanks, I'm now going to go crazy !
:D
If interested there is already a good "crazy" starting point here -> https://github.com/dimecho/Open-Inverter-Dashboard
by dima
Sun Aug 09, 2020 5:05 pm
Forum: General
Topic: Embarrassing Software Question
Replies: 6
Views: 2181

Re: Embarrassing Software Question

unit8 will result in slightly less compiled size. Think ATTiny chips. I think best practice is to use unit8 where possible. The catch: uint8 can only hold up to 255. So if you need larger integer you need to use uin16 Note: int16 will go negative, uint16 only positive. +---------------+------------...
by dima
Thu Jun 18, 2020 1:13 pm
Forum: Inverters / Motor Controllers
Topic: Error when compiling source code
Replies: 7
Views: 1499

Re: Error when compiling source code

yaroslav wrote: Mon Jun 15, 2020 6:55 am You can write how to run the script?
It is a Windows PowerShell

1) Open PowerShell console (Start -> search for powershell)
2) Navigate to directory -> cd C:\...\...\
2) Run script (normally with .\ just like linux) -> .\script.ps1
by dima
Thu Jun 18, 2020 1:02 pm
Forum: User Interface
Topic: Universal WiFi Interface
Replies: 79
Views: 22665

Re: Universal WiFi Interface

There is an eeprom bug (I have a fix will push to GitHub soon) load this eeprom.ino with Arduino to erase EEPROM, then load the binary (or main arduino sketch) #include <EEPROM.h> void setup() { //Erase EEPROM to Default EEPROM.begin(1024); for (uint16_t i = 0 ; i < EEPROM.length() ; i++) { EEPROM.w...
by dima
Sun Jun 14, 2020 12:30 am
Forum: Inverters / Motor Controllers
Topic: Error when compiling source code
Replies: 7
Views: 1499

Re: Error when compiling source code

I put together a script for Windows.

You will need:
1) Python3 to compile libopencm3 library (and use Johannes version)
2) GCC 4.8 for Windows
3) ARM Embedded compiler
4) MinGW
by dima
Tue May 26, 2020 2:55 pm
Forum: User Interface
Topic: HOWTO: Flashing ESP8266
Replies: 181
Views: 61139

Re: HOWTO: Flashing ESP8266

Thank you! @celeron55 I was starting to feel discouraged ...again. :cry: Need one of them Johannes torque gloves.

Patreon.png
Patreon.png (9.47 KiB) Viewed 6898 times
by dima
Sun May 24, 2020 11:54 pm
Forum: User Interface
Topic: Flashing .bin via web interface always corrupts?
Replies: 5
Views: 4493

Re: Flashing .bin via web interface always corrupts?

Did you try .hex?