logo elektroda
logo elektroda
X
logo elektroda

[Solved] wemos d1 mini - how to display data from a web page on a 7 segment display?

deadmike84 714 6
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 18127846
    deadmike84
    Level 2  
    Hello I am new here and practically green with electronics and programming. I have recently become fascinated with electronics and in particular Arduino and all its derivatives. I wouldn't be myself if I didn't come up with a project that exceeds my knowledge. This is by way of introduction, and now to the point. I purchased a Wamos d1 mini board and a TM1637 7 segment LED 4 digit display and button (reset). I managed to put it all together, but unfortunately programmatically I have a problem. I have created a web page (wamos does the web server) where there are fields with numbers and I would like it to be "sent" to the wamos when I select a field and when I press the button(physical on the housing) this number is displayed on the tm1637 display. Could you please explain to me what this phenomenon is and how to do it? Thank you very much in advance for any help.
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • Helpful post
    #2 18128036
    tos18
    Level 42  
    a small example... A bit messy but you can see how to embrace buttons on a website.
    Code: C / C++
    Log in, to see the code
    .
  • ADVERTISEMENT
  • Helpful post
    #3 18128114
    khoam
    Level 42  
    deadmike84 wrote:
    I purchased a Wamos d1 mini board and a TM1637 7 segment LED 4 digit display and (reset) button. I managed to connect all this together, but unfortunately programmatically I have a problem.
    .
    Best to start with a simple example of how to display data on this display with the Wemos D1:
    http://www.esp8266learning.com/tm1637-7-segment-display-example.php
    The library used in this example (to be installed in the Arduino IDE): https://github.com/avishorp/TM1637
  • ADVERTISEMENT
  • Helpful post
    #4 18128582
    kaczakat
    Level 34  
    Use websocket to communicate between the website and the ESP program. Here an example of using to control the led https://github.com/kaczakat/ESP8266/blob/master/ESP8266-websocketRGB02.ino, the loop sends some counters to the page. Instead of lighting the led you can of course send text to the screen. On the web side, you have to program it in JavaScript, whatever you write there will be sent to the ESP, the whole page can be placed in the program code or a separate file compiled into the project, or simply as an HTML file thrown into flash memory on the ESP8266 spiffs drive.
    Helpful post? Buy me a coffee.
  • #5 18132502
    deadmike84
    Level 2  
    Thank you very much for your hints. I managed to solve part of the problem thanks to your hints. When the selected button is pressed on the web page, the value from the button is displayed on the serial port. However, I still can't manage to get these button values displayed on the 7 segment display. Let me just add that the values from the button are numbers (e.g. 24,5 ; 42,0).
  • ADVERTISEMENT
  • Helpful post
    #6 18132603
    khoam
    Level 42  
    deadmike84 wrote:
    However, I still can't manage to get these values from the button to show up on the 7 segment display.
    .
    Please show me the problematic code snippet, otherwise it's a fortune teller.
  • #7 18151941
    deadmike84
    Level 2  
    Thank you for your help :) .

Topic summary

The discussion revolves around a user's project involving a Wemos D1 Mini board and a TM1637 7-segment display. The user seeks guidance on how to send numerical data from a web page hosted on the Wemos to the display when a button is pressed. Responses suggest starting with basic examples of displaying data on the TM1637 and utilizing websockets for communication between the web interface and the ESP8266. The user reports partial success in displaying values on the serial port but struggles to show them on the 7-segment display. Further assistance is requested to resolve the remaining issues.
Summary generated by the language model.
ADVERTISEMENT