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 Наука
Finally my order of 2 boards arrived yesterday... !!! Time to start tinkering now !
Excellent video and great ingenuity ! I really like your videos/tutorials. Very well explained, entertaining and compact.
Adafruit version of this board has a built in adapter to add a memory chip which they also supply, very cheap.
Very good
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.
really good put together device, enjoyable well put together video, thanxs
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 =)
@Vihaan Jaxxon yup, have been using Instaflixxer for since november myself :D
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.
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.
@@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
Very cool! Yes compiling the whole Python seems daunting ... I will look into it. Thanks for sharing!
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.
Really helpful video! Would it be possible to use ulab on the Seeeduino XIAO?
Nice MicroControler
with the RAM of a Nano
but compact as a ATtiny85.
Well you can not have everything,- yet!!
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.
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
No you can't, the photoresistor is a resistor, so it consumes power, it does not generate power.
I have a project I'm doing can the text be rotated or resized?
Any power test so far, with sleep mode and led removed?
I haven't removed the LED but in sleep mode it needs 0.95 mA
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()
how to use EEPROM in SEEEDUINO
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.
Τι καλά που θα ήταν να έφτιαχνες και ένα βίντεο στα ελληνικά..
Τι βίντεο θα ήθελες στα ελληνικά;
Εγώ σε γνώρισα από τα πρώτα βίντεο που είχες κάνει με την εισαγωγή στο προγραμματισμό c++. Ήτανε τα 12 καλύτερα βίντεο που έχω δει σε όλη μου τη ζωή στο RUclips και δυστυχώς τα αφαίρεσες. βασικά ότι βίντεο και να θέλεις κάντο στα ελληνικά ή και στα ελληνικά. Ευχαριστώ πολύ για την απάντηση
Φοβερό, πρέπει να είσαι ο πιο παλιός συνδρομητής στο κανάλι! Χαίρομαι που σου άρεσαν εκείνα τα βίντεο και ελπίζω να σε βοήθησαν λίγο. Θα δω τί μπορώ να κάνω και στα ελληνικά. Δυστυχώς δεν υπάρχει μεγάλο ενδιαφέρον στην Ελλάδα για τέτοια πράγματα και το κοινό είναι πολύ περιορισμένο. Θα το κοιτάξω όμως.
Εν μέρει έχεις δίκιο σε αυτό που λες, αλλά πλέον δεν είναι ο κανόνας γιατί και πολλοί άλλοι όπως για παράδειγμα ο Παύλος καστανάς που έχει το κανάλι αστρόνιο με θέμα αστροφυσική. Πίστευε και αυτός πως δεν θα έχει μεγάλη απήχηση ένα κανάλι με αστροφυσική αλλά τελικά τα πράγματα αλλάζουν για καλό όλων μας Χαχαχα.. Πιστεύω ότι αν είσαι καλός που πραγματικά είσαι πολύ καλός αυτό θα φανεί ακόμα και στο Ελληνικό κοινό. Τα βιντεάκια με τον προγραμματισμό είχα προλάβει και τα είχα κατεβάσει.. Πίστεψέ με ότι δεν βοήθησες μόνο εμένα αλλά και πολλά άλλα παιδιά που ψάχνουν για τα πρώτα βήματά τους στον προγραμματισμό. Εκτός αυτού τα δύσκολα τα κάνεις να φαίνονται εύκολα μέσα από αυτά τα βίντεο σου! Εγώ θα σου πρότεινα να τα ξανά ανεβάσεις δεν έχεις να χάσεις τίποτα, είναι παιδιά που ψάχνουν για τα πρώτα βήματά τους στον προγραμματισμό εκτός αυτού ο προγραμματισμός έχει ανέβει ακόμα και στη χώρα μας. Αν δεν τα έχεις μπορώ να τα ανεβάσω εγώ σε ένα άκυρο κανάλι να τα κατεβάσεις και μετά να τα προσθέσεις στο κανάλι σου. Τέλος σκέψου ότι είσαι ο μόνος που ανεβάζεις βίντεο με προγραμματισμό και αν όχι ο μόνος ο καλύτερος που έχω βρει μέχρι σήμερα Ευχαριστώ πολύ για το χρόνο σου
Φίλε σε ευχαριστώ για τα καλά σου λόγια. Με έπεισες ... στείλε μου ένα email στο interesting@educ8s.tv γιατί θέλω μια βοήθεια και από εσένα. Ευχαριστώ
Check Seeeduino XIAO Expansion board
www.seeedstudio.com/Seeeduino-XIAO-Expansion-board-p-4746.html , will be perfect to inllustrate this project with.
Stillborn board and the whole idea. Thank you for overview! Now I will never use it in my projects.
Great video!
Thank you.
But I will NOT buy Seeeduino products. Seeeduino has a terrible history of support for products they make.
Thanks for sharing!