Avatar for rethus


Member since Feb 2020 • Last active Feb 2020
  • 1 conversations

Mobile & Web-Developer which like to explore the Word of IoT.

Most recent activity

  • in General
    Avatar for rethus

    @Frida yes, I see now. Thank you.

  • in General
    Avatar for rethus

    Yes, this crashed the Chip :) It output some error that LED1 wasn't found. But I've created now an WIFI Connection and played a bit around with some API commands. Works like a charm.

    @Frida @Robin @MaBe Thanks a lot for helping hands.

  • in General
    Avatar for rethus

    I have one ESP-01 and one ESP-01S Chip. (Wikipedia say, it has 1MB ?!)
    The Command you post is for 4MB, isn't it?

    If I use your command, I got this response:

    esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash \
    >   --flash_freq 40m --flash_mode qio --flash_size 4m \
    >   0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin \
    >   0x7C000 esp_init_data_default.bin 0x7E000 blank.bin
    WARNING: Flash size arguments in megabits like '4m' are deprecated.
    Please use the equivalent size '512KB'.
    Megabit arguments may be removed in a future release.
    esptool.py v2.8
    Serial port /dev/ttyUSB0
    Detecting chip type... ESP8266
    Chip is ESP8266EX
    Features: WiFi
    Crystal is 26MHz
    MAC: dc:4f:22:5a:85:86
    Uploading stub...
    Running stub...
    Stub running...
    Configuring flash size...
    Compressed 3856 bytes to 2762...
    Wrote 3856 bytes (2762 compressed) at 0x00000000 in 0.2 seconds (effective 124.4 kbit/s)...
    Hash of data verified.
    Compressed 459684 bytes to 320164...
    Wrote 459684 bytes (320164 compressed) at 0x00001000 in 28.2 seconds (effective 130.4 kbit/s)...
    Hash of data verified.
    Compressed 128 bytes to 75...
    Wrote 128 bytes (75 compressed) at 0x0007c000 in 0.0 seconds (effective 80.9 kbit/s)...
    Hash of data verified.
    Compressed 4096 bytes to 26...
    Wrote 4096 bytes (26 compressed) at 0x0007e000 in 0.0 seconds (effective 4105.0 kbit/s)...
    Hash of data verified.
    Hard resetting via RTS pin...

    But now I got a connection. Thanks a lot. I'm so happy now to get the first connection :)

    Do you have a tiny test-script for me to upload something?
    Is there a documentation to see which commands are supported for the different Chip-types like esp-01, esp-01s, esp32-cam, node-mcu and so on?

  • in General
    Avatar for rethus

    @Frida Thanks a lot for your step-by-step introduction.
    I've now

    1. erased the flash
    2. download and unpack this Package: https://www.espruino.com/Download
    3. Re-Plugin the Stick

    If I start the ESPruino Web-IDE and connect the Chip, I see that the Chip output something... all the time:

    But uploading the example-blink-Script doesn't work. Returend Prompt not detected - upload failed. Trying to recover...

    If I do the following:

    1. run esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_freq 40m --flash_mode qio --flash_size 1MB 0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin 0xFC000 esp_init_data_default.bin 0xFE000 blank.bin
    2. Re-Plugin the Stick
    3. Connect to Web-IDE.... but even if I re-plugin, or start in Flash-Mode (by pressing button on Plugin), I can't upload the example-script. I always got Prompt not detected - upload failed. Trying to recover...

    So what I've done wrong?

    BTW: I didn't found the place to change Baud-Setting in Chrome-Web-IDE.

  • in General
    Avatar for rethus

    @Robin "flashed" means something like: happy, overwhelmed, impressed ....
    As I'm a Mobile & Web-Developer, I'm very familiar with JS, so I'm glad to see that it's possible to use it for ESP-programming too.

    This was the link I've missed to add... means the HowTo I've followed: https://www.espruino.com/Quick+Start+USB­

    I've also ordered some other chipset like esp-12, NodeMCU... but first I wan't to start with this tiny one. The single gpio-Output on the esp-01 fit's my needs (I think so) for a tiny first Project.

    So maybe you can give me some general hints for the first Steps.
    For the ESP-01 (and maybe other chipsets), what are the steps to work with it?
    Is it like this:

    1. Put Chip in Flash-Mode
    2. Upload firmware especially for this Ship
    3. Upload Espruino firmware
    4. Upload code, which do something on the chip (for espruino it's js, arduino it's C ?)

    I've still ordered a bunch of esp-Chipsets before I was aware that Espruino exist. So I wan't first go with this stuff, instead of buying additional Stuff like Pico or other thinks.
    Because I'm at the very beginning of this hobby... You know what I mean?

  • in General
    Avatar for rethus

    Hi there,
    I have ordered some esp chipsets and got it last week.
    Today I found Espruino and was totally flashed, that I can code with JS on the chipset.

    I have the Mini-Breadboard HW-305 and ESP-01S plugged on it. (It's the same hardware like in this Video (from 0:00 till 0:30) : https://www.youtube.com/watch?v=6uaIWZCR­Sz8


    Now I try to connect it to the Espruino-Web-IDE, but without success. Because I use Linux, I've followed the instructions to add my user to plugdev group and re-login to get this new permissions active.

    Then I've opened the Espruino-Web-IDE in Chrome and click the yellow Button above.
    I see an Popup with the USB-Port, but if I choose this, I got an error:"Connection failed".

    In the Settings ⇒ Console, I see this:

    We have chrome.serial - not using 'serialport' module
    serial_audio: Audio Sample rate : 44100
    serial_audio: Audio Serial Baud 9600 Bit time 4.59375
    UTF8 Library loaded successfully
    GET chrome.storage.sync = {"AUTO_SAVE_CODE":true,"BAUD_RATE":9600,­"BLOCKLY_EXTENSIONS":"|bluetooth|robot|"­,"BLOCKLY_LANGUAGE":"en","BLOCKLY_TO_JS"­:false,"BOARD_JSON_URL":"http://www.espr­uino.com/json","CODE":"var  on = false;\nsetInterval(function() {\n  on = !on;\n  LED1.write(on);\n}, 500);","COMPILATION":true,"COMPILATION_U­RL":"https://www.espruino.com/service/co­mpiler","DISABLE_CODE_HINTS":false,"ENAB­LE_Testing":false,"ENV_ON_CONNECT":true,­"FONT_SIZE":12,"KEYMAP":"sublime","MINIF­ICATION_DeadCode":true,"MINIFICATION_LEV­EL":"","MINIFICATION_Literal":true,"MINI­FICATION_Mangle":true,"MINIFICATION_Unre­achable":true,"MINIFICATION_Unused":true­,"MODULE_AS_FUNCTION":false,"MODULE_EXTE­NSIONS":".min.js|.js","MODULE_MINIFICATI­ON_LEVEL":"ESPRIMA","MODULE_PROXY_ENABLE­D":false,"MODULE_PROXY_PORT":"","MODULE_­PROXY_URL":"","MODULE_URL":"https://www.­espruino.com/modules","OFFLINE_DATA":"",­"OFFLINE_DATA_DOWNLOAD":"","OFFLINE_DATA­_UPLOAD":"","OFFLINE_ENABLED":false,"PRE­TOKENISE":false,"RESET_BEFORE_SEND":true­,"SAVE_ON_SEND":0,"SERIAL_AUDIO":"0","SE­RIAL_FLOW_CONTROL":true,"SERIAL_IGNORE":­"/dev/ttyS*|/dev/*.SOC|/dev/*.MALS","SER­IAL_TCPIP":"","SERIAL_THROTTLE_SEND":fal­se,"SET_TIME_ON_WRITE":false,"SHOW_CODE_­LINK_ICON":false,"SHOW_WEBCAM_ICON":0,"S­TORE_LINE_NUMBERS":true,"Sound_Error":""­,"Sound_Info":"","Sound_Success":"","Sou­nd_Warning":"","Speak_Error":false,"Spea­k_Info":false,"Speak_Success":false,"Spe­ak_Warning":false,"UI_MODE":"Normal","WE­BCAM_CONSTRAINTS":0,"WEB_BLUETOOTH":true­,"WEB_SERIAL":true}
    Initialising SettingsConsole
    Initialising Utils
    Initialising Config
    Initialising Notifications
    Initialising Status
    Initialising App
    Initialising File
    Initialising Code
    Initialising Serial
      - Initialising Serial Chrome Serial
      - Initialising Serial Chrome Socket
      - Initialising Serial Web Audio
      - Initialising Serial Web Bluetooth
      - Initialising Serial Web Serial
    Initialising Terminal
    Initialising CodeWriter
    Initialising Modules
    Initialising Env
    Initialising Flasher
    Initialising EditorBlockly
    Initialising EditorJavaScript
    Initialising Send
    Initialising MenuPortSelector
    Initialising MenuSettings
    Initialising MenuFlasher
    Initialising SettingsAbout
    Initialising SettingsFlasher
    Initialising BoardJSON
    Initialising VersionChecker
    Initialising Compiler
    Initialising Assembler
    Initialising GetGitHub
    Initialising Unicode
    Initialising Minify
    Initialising Pretokenise
    Initialising SaveOnSend
    Initialising SetTime
    Initialising Tutorial
    Initialising Webcam
    Initialising FontSize
    Initialising UiMode
    Initialising URLHandler
    Initialising CodeLink
    Initialising Project
    Initialising Testing
    Initialising Notification_Sound
    Initialising Tern
    Initialising Debugger
    Initialising Tour
    Initialising SettingsProfile
    Initialising HelpLinks
    Initialising Offline
    Initialising CoreModules
    Loaded code from storage.
    GET chrome.storage.local.OFFLINE_DATA = 0 bytes
    No navigator.bluetooth - Web Bluetooth not enabled
    No navigator.serial - Web Serial not enabled
    >>> Connecting...
    Set Slow Write = true
    Unable to open device (connectionInfo=undefined)
    ERROR: Unable to open device (connectionInfo=undefined)
    ERROR: [notify_error] Connection Failed.
    >>> Connection Failed.
    >>> Connecting...
    Set Slow Write = true
    Unable to open device (connectionInfo=undefined)
    ERROR: Unable to open device (connectionInfo=undefined)
    ERROR: [notify_error] Connection Failed.
    >>> Connection Failed.

    Can anybody give me a helping hand to start with my first IoT and Espruino? I would love to do it with Espruino and not with Arduino, becauese I'm still familiar with JS-Coding.