Skip to main content

03 - USB code upload

Uploading is done with Visual Studio Code (VS) using the PlatformIO tab

image-1648136519736.png

During your 1st Upload, you must plug in your ESP, wemos or TTL/USB adapter for programming

There are different versions available depending on what you are using as a dimmer.

image-1651775770647.png

  1. PowerSupplyACdimmer is used for old version of Robotdyn dimmer,
    this is the easiest version to install, it was compatible with the daughterboards supplied with the PV router V1.2 TTGO
    the recommended maximum power is 5A (and not 8A as indicated by the manufacturer)
    ( D0 and D1(zc) are used )
    the Dallas probe uses D2
    image-1651775952029.png
  2. StandAlone is used to later add a Robotdyn dimmer to your ESP.
    there are different versions supporting more or less power,
    on the smallest pod, the maximum recommended power is 5A (and not 8A as indicated by the manufacturer)
    on the 16A model, I think you should not exceed 12A -> ~2500W (to be tested)
    ( D5 and D6(zc) are used )
    The Dallas probe uses D7

    image-1651775990428.png



  3. SSR-JOTTA is used to live control an SSR The - connects to the GND and D4 to the + of the Jotta
    The Dallas probe uses D2

    image-1651776015419.png



  4. POWERSUPPLY2022 is for the 2022 version of the Robotdyn dimmer.
    it requires a TTL adapter for the 1st programming.
    the jumper between vdd and 3.3V must be removed during TTL programming
    then put back when connecting the assembly to the 220V


    The Dallas probe uses pin 14 - GND at 16 and 3.3v at 12





    image-1651776030344.png



Once the version has been chosen, thanks to VS you will load the firmware and the HTML pages of the router into the microcontroller

image-1648136675716.png

Then you can directly upload the code remotely with the /update page of the router