How to make a CircuitPython Light Meter Project with a Seeeduino Xiao board and a photoresistor

Поделиться
HTML-код
  • Опубликовано: 18 окт 2020
  • Dear friends welcome to another CircuitPython project. Today I am going to show how to build a simple CircuitPython light meter project with the Seeeduino Xiao board!
    💻 Code & Parts: github.com/educ8s/CircuitPyth...
    Want to learn to program?
    👨‍💻 Check my new RUclips channel: bit.ly/3tku2n0
    🎮 My Android Game: bit.ly/QuizOfKnowledge
  • НаукаНаука

Комментарии • 36

  • @PhG1961
    @PhG1961 3 года назад +1

    Finally my order of 2 boards arrived yesterday... !!! Time to start tinkering now !

  • @PhG1961
    @PhG1961 3 года назад

    Excellent video and great ingenuity ! I really like your videos/tutorials. Very well explained, entertaining and compact.

  • @Cam2Art
    @Cam2Art 3 года назад +1

    Adafruit version of this board has a built in adapter to add a memory chip which they also supply, very cheap.

  • @electronic7979
    @electronic7979 3 года назад +1

    Very good

  • @DavidVanCleef
    @DavidVanCleef 3 года назад

    I was able to get a temperature display running using a TI LM35DZ part, since it only relies on analogue input for measurements. With the Pi Pico actually cheaper than the Seeed device though I don't think I'll be doing much more with the 2 Xiaos I currently have beyond using them in some small project in the future that doesn't require much resources.

  • @breaktime3269
    @breaktime3269 3 года назад

    really good put together device, enjoyable well put together video, thanxs

    • @vihaanjaxxon218
      @vihaanjaxxon218 3 года назад

      dont know if anyone cares but if you're bored like me atm then you can stream pretty much all of the new movies and series on instaflixxer. Have been binge watching with my gf these days =)

    • @erikbrooks2595
      @erikbrooks2595 3 года назад

      @Vihaan Jaxxon yup, have been using Instaflixxer for since november myself :D

  • @roostertechchan
    @roostertechchan 3 года назад +3

    If this board runs Micropython, you could cross compile the libs into binary files which take less memory. I'm not sure if you can do that with CircuitPython, I've never used it.

    • @Educ8s
      @Educ8s  3 года назад

      Hey Milen, thanks for the hint. After a quick search, adafruit offers the libraries for CircuitPython in a .mpy file which is a binary container file format that holds precompiled code. So the libraries I loaded were already precompiled. So, we can't improve memory usage a lot more.

    • @roostertechchan
      @roostertechchan 3 года назад +1

      @@Educ8s there's another option which could further optimise the size - freeze bytecode the module into the .bin image of micro(circuit)python. The module is incorporated into the .bin image which is then flashed to the board. You then just import it. At least on Micropython's manual it says this saves even more Ram than importing .mpy. I've never done it since basically you have to compile the whole python image :) Here's how to do it for CircuitPython: learn.adafruit.com/building-circuitpython/adding-frozen-modules

    • @Educ8s
      @Educ8s  3 года назад +1

      Very cool! Yes compiling the whole Python seems daunting ... I will look into it. Thanks for sharing!

    • @riverwang5482
      @riverwang5482 3 года назад

      My guess it saves flash, but not RAM. The problem comes mostly from the 32k RAM on samd21. After you use the ssd1306 package, you only have about 2k ram to run your own code with.

  • @MarxTech_DIY
    @MarxTech_DIY Год назад

    Really helpful video! Would it be possible to use ulab on the Seeeduino XIAO?

  • @avejst
    @avejst 3 года назад

    Nice MicroControler
    with the RAM of a Nano
    but compact as a ATtiny85.
    Well you can not have everything,- yet!!

    • @Educ8s
      @Educ8s  3 года назад +1

      The Xiao board has 32KB of RAM 16x more of the Nano. The problem is that CircuitPython requires a lot of RAM to run so it consumes most of it.

  • @siddharthchordiya
    @siddharthchordiya 3 года назад +1

    Can we use this circuit to power a LED from the light that is coming on the photo resistor or we have to use more tan one photo resistor to increase the light intensity so as to power an LED

    • @Educ8s
      @Educ8s  3 года назад +1

      No you can't, the photoresistor is a resistor, so it consumes power, it does not generate power.

  • @bytemevv-4616
    @bytemevv-4616 2 года назад

    I have a project I'm doing can the text be rotated or resized?

  • @thatiotguy8837
    @thatiotguy8837 3 года назад

    Any power test so far, with sleep mode and led removed?

    • @Educ8s
      @Educ8s  3 года назад

      I haven't removed the LED but in sleep mode it needs 0.95 mA

  • @bonnome2
    @bonnome2 3 года назад

    Have you tried to use a garbage collection to free up ram? It sometimes help to run it at the beginning of the code. But you can also add it at other times.
    Import gc
    gc.collect()

  • @parthshukl3448
    @parthshukl3448 3 года назад

    how to use EEPROM in SEEEDUINO

  • @josephtannenbaum8696
    @josephtannenbaum8696 10 месяцев назад

    Tried this with circuitpython 8.2.4 and doesn't work: the bus_device is a directory, and looking at the serial monitor, it ran out of memory.

  • @georgekoygioym6051
    @georgekoygioym6051 3 года назад

    Τι καλά που θα ήταν να έφτιαχνες και ένα βίντεο στα ελληνικά..

    • @Educ8s
      @Educ8s  3 года назад +1

      Τι βίντεο θα ήθελες στα ελληνικά;

    • @georgekoygioym6051
      @georgekoygioym6051 3 года назад

      Εγώ σε γνώρισα από τα πρώτα βίντεο που είχες κάνει με την εισαγωγή στο προγραμματισμό c++. Ήτανε τα 12 καλύτερα βίντεο που έχω δει σε όλη μου τη ζωή στο RUclips και δυστυχώς τα αφαίρεσες. βασικά ότι βίντεο και να θέλεις κάντο στα ελληνικά ή και στα ελληνικά. Ευχαριστώ πολύ για την απάντηση

    • @Educ8s
      @Educ8s  3 года назад +1

      Φοβερό, πρέπει να είσαι ο πιο παλιός συνδρομητής στο κανάλι! Χαίρομαι που σου άρεσαν εκείνα τα βίντεο και ελπίζω να σε βοήθησαν λίγο. Θα δω τί μπορώ να κάνω και στα ελληνικά. Δυστυχώς δεν υπάρχει μεγάλο ενδιαφέρον στην Ελλάδα για τέτοια πράγματα και το κοινό είναι πολύ περιορισμένο. Θα το κοιτάξω όμως.

    • @georgekoygioym6051
      @georgekoygioym6051 3 года назад

      Εν μέρει έχεις δίκιο σε αυτό που λες, αλλά πλέον δεν είναι ο κανόνας γιατί και πολλοί άλλοι όπως για παράδειγμα ο Παύλος καστανάς που έχει το κανάλι αστρόνιο με θέμα αστροφυσική. Πίστευε και αυτός πως δεν θα έχει μεγάλη απήχηση ένα κανάλι με αστροφυσική αλλά τελικά τα πράγματα αλλάζουν για καλό όλων μας Χαχαχα.. Πιστεύω ότι αν είσαι καλός που πραγματικά είσαι πολύ καλός αυτό θα φανεί ακόμα και στο Ελληνικό κοινό. Τα βιντεάκια με τον προγραμματισμό είχα προλάβει και τα είχα κατεβάσει.. Πίστεψέ με ότι δεν βοήθησες μόνο εμένα αλλά και πολλά άλλα παιδιά που ψάχνουν για τα πρώτα βήματά τους στον προγραμματισμό. Εκτός αυτού τα δύσκολα τα κάνεις να φαίνονται εύκολα μέσα από αυτά τα βίντεο σου! Εγώ θα σου πρότεινα να τα ξανά ανεβάσεις δεν έχεις να χάσεις τίποτα, είναι παιδιά που ψάχνουν για τα πρώτα βήματά τους στον προγραμματισμό εκτός αυτού ο προγραμματισμός έχει ανέβει ακόμα και στη χώρα μας. Αν δεν τα έχεις μπορώ να τα ανεβάσω εγώ σε ένα άκυρο κανάλι να τα κατεβάσεις και μετά να τα προσθέσεις στο κανάλι σου. Τέλος σκέψου ότι είσαι ο μόνος που ανεβάζεις βίντεο με προγραμματισμό και αν όχι ο μόνος ο καλύτερος που έχω βρει μέχρι σήμερα Ευχαριστώ πολύ για το χρόνο σου

    • @Educ8s
      @Educ8s  3 года назад

      Φίλε σε ευχαριστώ για τα καλά σου λόγια. Με έπεισες ... στείλε μου ένα email στο interesting@educ8s.tv γιατί θέλω μια βοήθεια και από εσένα. Ευχαριστώ

  • @makerming1436
    @makerming1436 3 года назад

    Check Seeeduino XIAO Expansion board
    www.seeedstudio.com/Seeeduino-XIAO-Expansion-board-p-4746.html , will be perfect to inllustrate this project with.

  • @zhuk462
    @zhuk462 3 года назад

    Stillborn board and the whole idea. Thank you for overview! Now I will never use it in my projects.

  • @billypoe3703
    @billypoe3703 3 года назад

    Great video!
    Thank you.
    But I will NOT buy Seeeduino products. Seeeduino has a terrible history of support for products they make.

    • @Educ8s
      @Educ8s  3 года назад

      Thanks for sharing!