Date   

Flashing WeMos D1 Mini #wemos #wifi

Matteo Mantovani
 

Hi everyone,
I need to understand the procedure to flash wemos D1 mini and I want to flash wemos throught its micro-usb port.

When I have connected the wemos to my PC which arduino code I have to download ?
Should I use the code inside addons->WiFi ?

When I have download the code is
enough connect the wemos or I need to wait the start up sequence from onestep to ESP8266?

Thank you

Matteo


Re: PC does not reegonize FYSECT s6 after uploading ONSTEP

Juan Sebastian
 

Hi Jhon, i did the upload with STM32 V2.0 on both PCs first before even realizing, to install with 1.9.0 i think it is not enough to unistall 2.0 and install 1.9 with the old link rigth?

 

BTW about the Address in the STM32CubeProg.bat nope i checked that, this board always uploaded with 0x8010000 but just to be sure ill follow the wiki and see if something happens, it just arrived yesterday nigth... :/ i hope the issue is on my side and noth on the board, i really do not what to wait again 1 month for a replacement


Re: Stepper Motor doesn't do anything...

Burton
 

I don't have any connectors at the moment, so I have been directly soldering the motor leads to the board. Anyhow, I used a multimeter to find that the black and green go together, and the red and blue go together. Than, I soldered them back on(one pair on the left two pins, and one pair on the right two pins)

I also checked continuity with the multimeter from the motor wires through to the stepper driver pins and confirmed that the clk pins are grounded.

I reuploaded the firmware with AUTOSTART   ON.
I don't get any movement using the serial monitor commands, but I see that when I am in the android OnStep app connected over bluetooth that tracking is not on.
This picture is the screen I see:

I then pressed the button to turn tracking on, and I am still only pulling .2 amps and now the led is blinking, but no movement or noise from the motors.

I then tried picking a bright star and GOTO it and still nothing.


Re: PC does not reegonize FYSECT s6 after uploading ONSTEP

John Petterson
 

Sorry, you already said it does not show up there in the device manager.

Are you certain that you never tried to program it before setting the starting address?  If you did that once you have overwritten the boot code and the FYSETC will not start up and connect.  I would try reloading the firmware as described in the Wiki, I have had that recover a board for me.

I do have a couple of FYSETC S6 boards that have failed that way - both V1.2 and V2.0.  One was replaced by the vendor as it was a DOA board.  The other one I let the magic smoke out at one point by having it on my desktop and dropping another board on top of it while it was powered up...


Re: Stepper Motor doesn't do anything...

Dave Schwartz
 

As I wrote in a different thread yesterday, you can also do it without an ohmmeter: https://onstep.groups.io/g/main/message/32851

On 2021-04-27 4:01 p.m., Howard Dutton wrote:
On Tue, Apr 27, 2021 at 11:55 AM, Howard Dutton wrote:

Back of a MaxSTM board here (MaxESP3 is the same for our
purposes.)  The squiggly lines represent the motor coils, two per
motor with the lines leading toward the adjacent related
terminals, I think that gets the point across. *Use a multi-meter
on ohms if you want to identify which pairs of wires are common in
a CAT5 cable after plugging in.*

You would do this while powered off with the drivers removed.


Re: PC does not reegonize FYSECT s6 after uploading ONSTEP

Dave Schwartz
 

The updated the package in the old github location. You're seeing that because the board manager is following both it internal Arduino URL and the URLs in the additional board managers in the preferences - they didn't have to update the installed package for the text to change like that. Fortunately, the 1.9.0 package is still installable (and all the older ones are still there in the dropdown from the old URL too).

I don't know how they expected many people to notice that since there was no push notification... I would never have seen it if it was not mentioned here because I don't go around spelunking through my board manager lists unless there's a good reason.

On 2021-04-27 3:56 p.m., John Petterson wrote:

That is interesting.  Here is what I am getting:



I'm not sure if that is a problem or not.  But since the link to the library source is the same (at least the same as I have in my environment), it looks like they have deleted all the old versions.

Try disconnecting the USB cable from your PC, then right click on the windows box and select "device manager", then click on ports (COM & LPT).  Note the com ports that are shown.  Then reconnect the USB cable and see if the list of ports changes. The window will redisplay if it sees a new port, so you can leave that open and try various combinations with your board and cable - try plugging into a different PC port, try moving the power selection jumper, etc.


Re: Stepper Motor doesn't do anything...

Howard Dutton
 

On Tue, Apr 27, 2021 at 11:55 AM, Howard Dutton wrote:
Back of a MaxSTM board here (MaxESP3 is the same for our purposes.)  The squiggly lines represent the motor coils, two per motor with the lines leading toward the adjacent related terminals, I think that gets the point across.  Use a multi-meter on ohms if you want to identify which pairs of wires are common in a CAT5 cable after plugging in.
You would do this while powered off with the drivers removed.


Re: PC does not reegonize FYSECT s6 after uploading ONSTEP

Dave Schwartz
 

Odd that they decided to make 2.0.0 a completely different board manager instead of just an update. Forces you to uninstall one before installing the other as new.

I've got both URLs in my preferences now (so both show up under an 'stm32' search) because eventually we'll go to a new 2.>0.0 package and this way I can flip back and forth to see who fixes it first.

On 2021-04-27 3:33 p.m., jbastian.casas@gmail.com wrote:
STM32 v2.0.0 dosnt have the previous versions dropdown


I was able to download 1.9.0 with the link Howard provided https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json <https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json>


I tried with it, again i was able to upload Onstep, but It stills does not show up in COM after the flash, no sound no nothing, any ideas about what could i do?


But the ligths turn on, so far i tried 2 pcs, 4 different cables


BTW there is any reason to not use the FYSETC addon? ​ https://raw.githubusercontent.com/FYSETC/ArduinoAddons/master/package_fysetc_index.json <https://raw.githubusercontent.com/FYSETC/ArduinoAddons/master/package_fysetc_index.json>


Re: PC does not reegonize FYSECT s6 after uploading ONSTEP

John Petterson
 

That is interesting.  Here is what I am getting:



I'm not sure if that is a problem or not.  But since the link to the library source is the same (at least the same as I have in my environment), it looks like they have deleted all the old versions.

Try disconnecting the USB cable from your PC, then right click on the windows box and select "device manager", then click on ports (COM & LPT).  Note the com ports that are shown.  Then reconnect the USB cable and see if the list of ports changes.  The window will redisplay if it sees a new port, so you can leave that open and try various combinations with your board and cable - try plugging into a different PC port, try moving the power selection jumper, etc.


Re: PC does not reegonize FYSECT s6 after uploading ONSTEP

Dave Schwartz
 

I can confirm that the new STM32 package is not compatible with OnStep (5.1v). I removed 1.9.0 and installed 2.0.0 (being careful to update the batch file address) and it did not work in at least two ways on my S6 V1.2: a) the serial port for the GPS on Serial3 no longer set the time/location even though the module had fixed and b) after setting the time manually via the app, after starting a 1-star align on Mirach the buzzer just came on solid and there was no mount movement (although the web server status page and SHC were still refreshing so it wasn't a hard lockup).

After reinstalling 1.9.0 (I left the URL to it in the preferences list) and changing the batch file again, all is back to normal.

So its something that's got to be fixed eventually, either by STMicroelectronics fixing a bug introduced in 2.0.0 or by OnStep incorporating changes that 2.0.0 requires. Hard to say which (or both) may be the ultimate resolution.

In the meantime, don't upgrade from 1.9.0.

On 2021-04-27 2:05 p.m., Howard Dutton wrote:
On Tue, Apr 27, 2021 at 10:56 AM, <jbastian.casas@gmail.com> wrote:

Im seeing that the stm32 installed in the boards manager is not
the 1.4.0 as the wiki shows, now it is 2.0.0 (updated 2-6 days
ago) https://github.com/stm32duino/Arduino_Core_STM32
<https://github.com/stm32duino/Arduino_Core_STM32> can that be the
problem? does anyone know how to download the 1.4.0??'

I'm on 1.9.0, perhaps this link still works:
https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json <https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json>

Who knows, but lets just say it wouldn't be a great surprise if that update broke something.


Re: PC does not reegonize FYSECT s6 after uploading ONSTEP

Dave Schwartz
 

Those LEDs only show the 5V and 3.3V buses have power on them. If you add the tracking LED, that will show you when OnStep gets through it initialization.

No point to that FYSETC addon... it is for the F6, not the S6... two totally different boards and the F6 is not supported by OnStep.

On 2021-04-27 3:33 p.m., jbastian.casas@gmail.com wrote:
STM32 v2.0.0 dosnt have the previous versions dropdown


I was able to download 1.9.0 with the link Howard provided https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json <https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json>


I tried with it, again i was able to upload Onstep, but It stills does not show up in COM after the flash, no sound no nothing, any ideas about what could i do?


But the ligths turn on, so far i tried 2 pcs, 4 different cables


BTW there is any reason to not use the FYSETC addon? ​ https://raw.githubusercontent.com/FYSETC/ArduinoAddons/master/package_fysetc_index.json <https://raw.githubusercontent.com/FYSETC/ArduinoAddons/master/package_fysetc_index.json>


Re: PC does not reegonize FYSECT s6 after uploading ONSTEP

Juan Sebastian
 

STM32 v2.0.0 dosnt have the previous versions dropdown


I was able to download 1.9.0 with the link Howard provided https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json


I tried with it, again i was able to upload Onstep, but It stills does not show up in COM after the flash, no sound no nothing, any ideas about what could i do?


But the ligths turn on, so far i tried 2 pcs, 4 different cables


BTW there is any reason to not use the FYSETC addon? ​ https://raw.githubusercontent.com/FYSETC/ArduinoAddons/master/package_fysetc_index.json


Re: Stepper Motor doesn't do anything...

Drew 🔭📷🚴‍♂️
 

Since you are using monitor commands try setting:

#define TRACK_AUTOSTART               ON

in config.h. You need to either do that or go thru the commands to imitate a normal OnStep startup before the motors will move.


Re: Stepper Motor doesn't do anything...

Howard Dutton
 

On Tue, Apr 27, 2021 at 11:24 AM, Burton wrote:
the motor that was moving was on axis 1, and I had not cut the clk or connected clk to ground on axis 1. axis 2 doesn't move at all. So now I think I cut the clk pin for nothing and now I need a new driver possibly? I thought I knew what I was doing lol
Good advice was given about that, you might be able to get away with plugging in and it kind of working without cutting CLK but it's not the way to go.

AFAIK V1.2 of the Bigtree 5160 supposedly has grounded CLK already (probably pulled low via resistor,) they messed up with V1.1 it wasn't grounded (some users though said 1.2 still wasn't grounded.)

OnStep has a trace leading from that pin to the module's SPI/SDO pin...  so any SPI commands might overcome that resistor and change CLK from low to high (or it will mess up SDO.)  I hope/assume the currents are limited so probably no damage.  That trace is standard step stick design so older DRV8825 and A4988 can work, those pins are called SLP./RST and RST pulls SLP the right way to keep the driver active when connected together.


Re: Stepper Motor doesn't do anything...

Glenn Sammes
 

Suggest the stepper is not connected correctly. Either the coil wiring is wrong or bad contact.

Cheers,

Glenn.

 

From: main@onstep.groups.io <main@onstep.groups.io> On Behalf Of Burton
Sent: Wednesday, 28 April 2021 6:22 AM
To: main@onstep.groups.io
Subject: Re: [onstep] Stepper Motor doesn't do anything...

 

I'm just getting even more confused.😤

I added the second stepper motor to the board, and then they started vibrating when I put it into tracking. It didn't really show any signs of movement, though sometimes and I'm not sure what I did, it would move ever so slowly when in GOTO, but vibrating pretty bad and irregularly. 

How am I supposed to wire the motors up?

Also, I burnt my only fuse because I guess it was drawing too many amps for what the fuse could handle? My bench power supply is at 12v and 3amps maximum. So now I'm afraid to try anything else and don't know where to get more fuses. 


Re: Stepper Motor doesn't do anything...

Howard Dutton
 

On Tue, Apr 27, 2021 at 11:55 AM, Howard Dutton wrote:
Use a multi-meter on ohms if you want to identify which pairs of wires are common in a CAT5 cable after plugging in.
Also use a multi-meter on ohms to identify which leads of a motor are common to each coil.


Re: Stepper Motor doesn't do anything...

Howard Dutton
 

On Tue, Apr 27, 2021 at 11:22 AM, Burton wrote:
I added the second stepper motor to the board, and then they started vibrating when I put it into tracking. It didn't really show any signs of movement, though sometimes and I'm not sure what I did, it would move ever so slowly when in GOTO, but vibrating pretty bad and irregularly. 

How am I supposed to wire the motors up?
Back of a MaxSTM board here (MaxESP3 is the same for our purposes.)  The squiggly lines represent the motor coils, two per motor with the lines leading toward the adjacent related terminals, I think that gets the point across.  Use a multi-meter on ohms if you want to identify which pairs of wires are common in a CAT5 cable after plugging in.


Re: Stepper Motor doesn't do anything...

Burton
 

the motor that was moving was on axis 1, and I had not cut the clk or connected clk to ground on axis 1. axis 2 doesn't move at all. So now I think I cut the clk pin for nothing and now I need a new driver possibly? I thought I knew what I was doing lol


Re: Stepper Motor doesn't do anything...

Burton
 

I'm just getting even more confused.😤

I added the second stepper motor to the board, and then they started vibrating when I put it into tracking. It didn't really show any signs of movement, though sometimes and I'm not sure what I did, it would move ever so slowly when in GOTO, but vibrating pretty bad and irregularly. 

How am I supposed to wire the motors up?

Also, I burnt my only fuse because I guess it was drawing too many amps for what the fuse could handle? My bench power supply is at 12v and 3amps maximum. So now I'm afraid to try anything else and don't know where to get more fuses. 


Re: PC does not reegonize FYSECT s6 after uploading ONSTEP

Dave Schwartz
 

Disregard that bit about the esp32 BM version... I got the wrong end of the stick.

On 2021-04-27 2:06 p.m., Dave Schwartz wrote:
In the boards manager there is a dropdown with previous versions in it. Find your 'esp32' board manager in the 'all' type, select the version you want from there and the install button right beside it. I have the 1.0.6 board manager and no problems (because I set the baud rate explicitly on both ends and use SWAP OFF) but strange that it does not offer any upgradable version to that.

On 2021-04-27 1:56 p.m., jbastian.casas@gmail.com wrote:
Installed Arduino 1.8.13, STM32CubeProgrammer and changed the stm32CubeProg.bat on other PC, did all the process to flash the S6v2 again. I was able to do it (Pic attached), but it stills does not work (is not recognized) when i remove the boot jumper.... Im seeing that the stm32 installed in the boards manager is not the 1.4.0 as the wiki shows, now it is 2.0.0 (updated 2-6 days ago) https://github.com/stm32duino/Arduino_Core_STM32 <https://github.com/stm32duino/Arduino_Core_STM32> can that be the problem? does anyone know how to download the 1.4.0??'



11061 - 11080 of 43718