#microcontrollers
1 messages · Page 9 of 1
yes, that makes perfect sense. i might got the multiplexer route and add the 3.3v to 5v module if possible on top of that. that or just use a arduino nano to feed in the v and amp data to esp32 via rx tx . will still need 3.3 to 5v converter though. trying to take the easiest route
so true thank you
all you need is 2 resistors lol
you dont need all this fancy multiplexer , extra arduino and whatnot
yeah i have the resistors ready but only pin 35 seems to be compatible with the cyd at this point. need two modules so i can measure amps and voltas at same time to caculate watts to create other features i need for projects
you can measure voltage with another 2 resistors forming a resistor divider , you dont need a whole new ACS module
i like having the volt and amp meter seporate but maybe i should opt for the all in one module
what is the "max voltage and current" you want to measure ?
awesome, could i add that to the divider to the current amp meter. volt module is 25v. amp module is 5 amp. the all in one unit it 3 amps and less voltage hence the reason i got them seporate
and with what resolution
25v is decent
the divider for measuring voltage and the divider for the ACS module are different , you need 4 reissotrs total
im not sure. i know there is 10 bit and 12 bit resolution, 10 but usually with arduino and 12 bit with esp32
so 25V and 3A is the max you want to measure ?
no i mean , the resolution of current measurement , down to 1 mA or 10mA or 100 mA or what ???
i was hopeing to have the full 5a to be able to measure solar panel output
yea , so what is your requirement ?? 25V at 5A ??
I am asking what you want your current sensor to be able to do , you set the limits
i think 100ma would be fine, does not need to be perfect just in balpark
ok , 6amp max
then ACS module + resistor divider is more than enough imo , thats what i would choose
my solar panel is 100w at 5.6 amps i think or something like that
ok sweet, ill try and get the acs working on pin 35 and would it be ok to text ya on here when i get that part set?
sure
will the ressitor divider have to be on another pin? do u think this example in the esp32 picture on this page is good for the acs? mainly the resistor specs?
The range is set by which ACs712 you are using, if you use the 05 version then it can measure 5 amps max.
If you use a voltage divider of 39k on the top, and 10k on the bottom, then you will get a division of ~4, and the 0-5V anologue output of the ACS712 will get translated to 0-1.05V for the esp32 to read; it has a second attenuation option where its ADC is configured to read 0-1.1V which is its voltage reference value
I suggest put the divider output on one of the ADC1 pins
Decided to go with arduino nano for now and rxTX data with level shifter. Its the 30a acs712. Got it dialed in on nano. I don't wanna damage the whole tft screen so I'm gonna try and play it extra safe go the TX rx route for now
I highly appreciate the feedback
Is C++ good for microcontrollers
its pretty much the most widely used option in the industry
if you are doing microcontrollers , you should know C/C++
Thank you
Has anyone come across an issue where code works when run through thonny but not when running on boot?
I have been trying to sort this error for a while and have built the system on two devices in order to try and fix it but can't work it out
It loads well until I run it headless and then it always gives the same error
It is loading the sd card, for some reason it just wont do it when the pico is running not connected to the computer
I am have made a reprex file is anyone would be happy to have a lok over it? I am wondering if it is because of the way that I am setting up the vfs but it is the same as I see working all the time online
although admittedly they do not try to run it headless
I have also tried it with the esp32 and gotten the same issue
Meaning it really must be:
1 - The code
2 - The sd card adaptor
3 - The sd card
show code , the error, file structure on the pico, a circuit diagram ,and maybe a photo of physical setup
also what are you using to power the pico when it is not connected to PC ?
Here is a reprex of the code
from machine import Pin, SPI
import sdcard
import uos
SD_MISO = Pin(19)
SD_MOSI = Pin(23)
SD_SCK = Pin(18)
SD_CS = Pin(5)
cs = SD_CS
spi = SPI(1, baudrate=1000000, phase=0, polarity=0, sck=SD_SCK, mosi=SD_MOSI, miso=SD_MISO)
sd = sdcard.SDCard(spi, cs)
vfs = uos.VfsFat(sd)
uos.mount(vfs, "/sd")
uos.listdir()
with open("/sd/tester.txt", "w") as f:
f.write("HelloWorld!\r\n")
I am using this board
With the pins as specified in the code. The ground is connected to the top right pin and the VDD to the opposite "+5V" pin.
Bit of a messy setup with the other components but everything is wired correctly I believe
The code works great when run from thonny
But not when run headless, I have tested to make sure that it is actually trying to run the code when running headless by putting LED flashes in at various places which all work up until the line
"sd = sdcard.SDCard(spi, cs)"
I have also wired this up to a pi pico and had the same issue
I have also previously sent the error messages to the display so that I get them even whilst running headless and I get the error.
"couldn't determine SD card version"
But I do not get this error when run through thonny
In terms of the power supply I use the same usb hub as when I am running it from thonny as it runs the program when I connect it without needing prompting if I put it in the boot file. I have also tried it historically with usb wall plugs with no luck.
I want to connect arduino to esp32 via Bluetooth . I seem to be struggling, can anyone recommend a website or video that would work. I've tried a lot of things but can't seem to connect
If anyone is able to give me any advice I would really appreciate it, I have been stuck on this for months and spend hours and hours searching the web for a fix
Can you add a time.sleep after the imports? Maybe 50ms, maybe 0.1s?
Sure I will absolutely try that! From memory I tried putting in a 1s sleep between every line one at a time between the stary line and the line that broke and still couldn't get it to work in the main file I am using
sorry for the late reply
and you are sure that you are not changing anything (by anything , i mean literally anything , like SD card ) between the runs except running from thonny vs headless ?
Yeah I have kept it consistent
I have swapped out during my testing:
The board: Pico to ESP32
The power supply: From the usb hub that is used to connect it to my mac to an external usb block (2.5A)
I am happy to take any photos or videos that would be helpful
I have also put a flash in the code in every line to find out where it breaks
And I have also used logging to log the error to a text file on the board as well as sending the error to the lcd screen which returns "couldn't determine SD card version"
I have also tried swapping it from the 5v pin to the 3.3 but admittedly not when running headless as it breaks even when not doing that
I am not sure it can be done with the package
I actually haven’t found anyone who has run it headless
At all
Does anyone have any examples of projects using micro python that use an sd card?
This is the sd card reader I am using
I have it currently set to the 5v pin but with the 3.3 it won't work for some reason
I am going to order these to see if it makes any difference
Are you putting it on an Arduino? Step 7 says there's "3.3V level converter chip"
yes i have used it in the past , multiple times , it works
i cant find the issue in your setup at first glance
i will take look when i have little more time
Amazing thank you I really appreciate it!
I have put it on both the pi pico and an ESP32 both of which work through thonny but not headless but both I had attached at 5V
aight , lets go back to basics
can you do just a board + SD card ?? remove all other components
and log something to a file on SD card
now , check if this works in headless mode first
also , dont try to change too much stuff , choose some things and keep them constant throughout experimentation
for example , choose a main board - either ESP32 or pi pico , and stick with it throughout your whole experiment , dont swap around boards
we need to keep everything constant and check 1 factor at a time
first we will check SD card
lmk the results
Absolutely I should be back at my house in half an hour or so, I will let you know
Thank you for the help 🙂
has anybody here every taken embedded systems before with using both Assembly Language and C with programming out microcontrollers and if so can you tell me your experience
I am supposed to be taking this course as it is a 8 week course that is 4 credits with lab attached to them. I been told that this is a challenging course itself and if somebody can tell me more about it.
i did make stuff with arduinos before i knew C and assembly
but it was just finding project on internet and replicating it , i didnt write any code ,if i was stuck , i would post question on random forums and search answers
then after some time i learnt C/C++ , that got used in microcontroller extensively
then in our college we had a course on microprocessors and microcontrollers where they taught us assembly code
also " embedded systems" is a big term
post syllabus of your specific course , we might be able to help you better knowing what microcontrollers you are expected to use in there
@elfin sphinx I will do that and thankyou
The use of computing devices in embedded applications is introduced. Computer organization topics include the functional architecture of microcontrollers, timing and control, memory, serial and parallel I/O ports, and the bus system. Additional topics include peripheral interface control, interrupts serial communication, and applications. Programs are written and run in assembly language or higher-level languages. This course presumes an introductory-level understanding of structured programming techniques.
Course description
At the end of this course the student will be able to:
- Understand the architecture of a microcontroller (MCU) system.
- Use an integrated development environment (IDE) to program an MCU.
- Write programs in C or assembly language to perform tasks.
- Use registers to configure an MCU to do various tasks.
- Use internal timers and external interrupts to control processes.
- Use an MCU to:
a. Control an external peripheral device using digital output.
b. Respond to a digital input.
c. Generate an analog signal using pulse-width modulation (PWM).
d. Respond to an analog input through an analog-to-digital converter (ADC).
e. Send and receive serial digital data using a serial communication protocol.
Course objectves
Been told nobody can tell me how it might go as everybody is different
textbooks to be used
Embedded Systems Design using the MSP430FR2355 LaunchPad™ (Brock J. LaMeres) Springer Nature Switzerland, 2020
ISBN: 978-3-030-40574-8
MSP430 Microcontroller Basics (J.H. Davies) Newnes Press (Elsevier), 2008.
ISBN: 978-0-7506- 8276-3
i got 2 pico w and adafruit oled 0.96 and arducamera for live feed and 2 drv8833 and i need some help making code for rc i'm planning to build
I am wondering if part of the problem I have been having with this sd card is that I formatted it on mac
I am trying to redo it now and don't actually have the option of fat 32 from what I can see
Only ExFAT or MS-DOS
I have reformatted the card as MS-DOS and am using this code
from machine import Pin, SPI
import sdcard
import uos
import time
SD_MISO = Pin(19)
SD_MOSI = Pin(23)
SD_SCK = Pin(18)
SD_CS = Pin(5)
with open("/tester.txt", "w") as f:
f.write("HelloWorld, Headless!\r\n")
cs = SD_CS
spi = SPI(1, baudrate=1000000, phase=0, polarity=0, sck=SD_SCK, mosi=SD_MOSI, miso=SD_MISO)
sd = sdcard.SDCard(spi, cs)
vfs = uos.VfsFat(sd)
uos.mount(vfs, "/sd")
uos.listdir()
with open("/sd/tester.txt", "w") as f:
f.write("HelloWorld, Headless!\r\n")
I have also removed all other components
I have been able to get it to work!
But it is not very consistent
It takes a few resets for it to work for some reason
I guess I could put in a loop which tries until it works
but that is not a great solution
It worked once and then never worked again
I have updated the code so that it tries it over and over again
It works flawlessly when run through thonny but not at all when headless
Apart from that one random time
but now I set it to try 50 times and it will not do it
Does anyone else have a board setup with micropython and an sd card reader to hand?
can you show your setup ?? a wiring diagram , and photo of what SD card module you have ??
also one small thing , i have not used uos module for my SD card project, i have used the os module
i am not sure what the difference between the two is , its just what i have used
# SPI bus initialization for SD card with 80Mhz frequency
spi = SPI(0, baudrate=80_000_000, polarity=0, phase=0, bits=8, sck=Pin(2), mosi=Pin(3), miso=Pin(4))
# Chip Select pin
CS = Pin(5, Pin.OUT)
#SD card initialization and mounting
sd = sdcard.SDCard(spi,CS)
vfs = os.VfsFat(sd)
os.mount(vfs, "/sd")
here is how i had setup my sd card with pico using micropython
how much gig is your card ??
i would suggest to sticking something < 32 gig
i am not sure how formatting is done on mac
but if you are comfortable with command line interface, i am pretty sure you can find a tutorial giving you the command u need to run
My next thought is that it may have something to do with the SD card reader
I can not find an ESP32 on a software to do the pins but they are specified in the code
I will try soldering pins to an adaptor and see if I can use that instead
how do you power the thing when u want to power it headlessly ??
do you plug in a USB cable into ESP32 and the other end into USB hub ?
You can see them all from here:
SD_MISO = Pin(19)
SD_MOSI = Pin(23)
SD_SCK = Pin(18)
SD_CS = Pin(5)
I literally just unplug it from the usb hub on the laptop and replug it back in
The power boots the program
and u are saying that , in this exact setup , everything works as expected every single time when run through thonny ?
Yeah I will send a video to show you
It works every time in thonny but it has only worked one time ever headless
have you made sure you are storing the code on ESP32's memory ??
I have tried with a 2.5A adapter which also doesn’t work unfortunately
also change uos to os in your code and run that
Will do
That is it working through thonny
Not headless for the end sorry should have said text stuff in it
Yeah sure
from machine import Pin, SPI
import sdcard
import uos
import time
import logging
SD_MISO = Pin(19)
SD_MOSI = Pin(23)
SD_SCK = Pin(18)
SD_CS = Pin(5)
cs = SD_CS
spi = SPI(1, baudrate=1000000, phase=0, polarity=0, sck=SD_SCK, mosi=SD_MOSI, miso=SD_MISO)
logging.basicConfig(filename='errors.log', level=logging.ERROR)
Loop to try multiple times
if "/sd" in uos.listdir():
print("SD card is already mounted")
else:
print(uos.listdir())
max_attempts = 50
for attempt in range(max_attempts):
try:
sd = sdcard.SDCard(spi, cs)
vfs = uos.VfsFat(sd)
uos.mount(vfs, "/sd")
print(uos.listdir())
print("SD card mounted successfully!")
# Now you can use the SD card
with open("/sd/tester.txt", "w") as f:
f.write("HelloWorld, Headless!\r\n")
break # Exit the loop only if successful
except OSError as e:
print(f"SD card mount failed (attempt {attempt + 1}): {e}")
logging.error(f"Error: {str(e)}")
time.sleep(0.2) # Wait before retrying
If all attempts failed, print an error message
if attempt == max_attempts - 1:
print("SD card mount failed after all attempts")
I actually just tried to record it not working but it worked headless for the secodn time ever, but it has only worked two out of maybe 50 tries
whats the output in serial of this code when run headlessly vs when run using thonny ??
Sorry I am not quite sure what you mean by that?
The terminal output when it works is as follows:
%Run -c $EDITOR_CONTENT
MPY: soft reboot
['SDCardReader.py', 'boot.py', 'errors.log', 'lib']
['sd', 'SDCardReader.py', 'boot.py', 'errors.log', 'lib']
SD card mounted successfully!
I have set it up to log errors to the board's storage when an error occure and it produced this file when running headlessly
Traceback (most recent call last):
File "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tkinter/init.py", line 1921, in call
return self.func(*args)
File "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/thonny/base_file_browser.py", line 590, in on_double_click
self.open_file(path)
File "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/thonny/base_file_browser.py", line 1205, in open_file
get_workbench().get_editor_notebook().show_remote_file(path)
File "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/thonny/editors.py", line 1076, in show_remote_file
return self.show_file(make_remote_path(target_filename))
File "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/thonny/editors.py", line 1063, in show_file
self.select(editor)
File "/Applications/Thonny.app/Contents/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tkinter/ttk.py", line 885, in select
return self.tk.call(self._w, "select", tab_id)
_tkinter.TclError: .!frame.!automaticpanedwindow.!automaticpanedwindow2.!editornotebook.!editor22 is not managed by .!frame.!automaticpanedwindow.!automaticpanedwindow2.!editornotebook
But I am not using tkinter so I have no idea what it means by that?
import machine, os, vfs
# Slot 2 uses pins sck=18, cs=5, miso=19, mosi=23
sd = machine.SDCard(slot=2)
vfs.mount(sd, '/sd') # mount
os.listdir('/sd') # list directory contents
with open("/sd/hello.txt", "w") as f:
f.write("HelloWorld, Headless!\r\n")
vfs.umount('/sd') # eject
can you run this code and lmk the results ??
in both , headless as well as through thonny
%Run -c $EDITOR_CONTENT
MPY: soft reboot
Traceback (most recent call last):
File "<stdin>", line 5, in <module>
OSError: 16
That is in thonny
Headless won't give me an output because to won't be connected to the terminal
Do you want me to mount the sd with the previous code first?
umm , i do not have the exact same ESP32 as you on hand rn so i wont be able to reproduce that bug
are you able to wire up a pico on your machine and test this ? ( Since you said you had same issue on pico as well )
Ill reproduce the setup here and let you know what happens
Yeah absolutely can do I will just need a second if that is alright I have been called for dinner so I may be about 15 mins no worries at all if you are not around to answer at that point I really am thankful for your help already!
all good , if i am on by the time you are here , we will dig through it
if not , you post the results ill check when i wake up tomorrow
Just wiring it up now
RIght it it up and working
from machine import Pin, SPI
import sdcard
import uos
import time
import logging
SD_MISO = Pin(12)
SD_MOSI = Pin(11)
SD_SCK = Pin(10)
SD_CS = Pin(13)
cs = SD_CS
spi = SPI(1, baudrate=1000000, phase=0, polarity=0, sck=SD_SCK, mosi=SD_MOSI, miso=SD_MISO)
logging.basicConfig(filename='errors.log', level=logging.ERROR)
# Loop to try multiple times
if "/sd" in uos.listdir():
print("SD card is already mounted")
else:
print(uos.listdir())
max_attempts = 50
for attempt in range(max_attempts):
try:
sd = sdcard.SDCard(spi, cs)
vfs = uos.VfsFat(sd)
uos.mount(vfs, "/sd")
print(uos.listdir())
print("SD card mounted successfully!")
# Now you can use the SD card
with open("/sd/tester.txt", "w") as f:
f.write("HelloWorld, Headless!\r\n")
break # Exit the loop only if successful
except OSError as e:
print(f"SD card mount failed (attempt {attempt + 1}): {e}")
logging.error(f"Error: {str(e)}")
time.sleep(0.2) # Wait before retrying
# If all attempts failed, print an error message
if attempt == max_attempts - 1:
print("SD card mount failed after all attempts")
I am so confused
I have set it all back up on the pico
and now it works flawlessly
Headless
and I only got the board because of the fact that the pico didnt work
Thank you fro the help I really appreciate it
I actually think it is the mass trials that are letting it work interestingly
Looking at the error log
looks like it failed a few times and the finally works
The last time I was using it I didn't have it set to try multiple times
I have no ide why it takes multiple attempts to load when headless but at least it works
Light mode
shouldnt happen that way
try and format the SD card using command line to FAT32 specifically
also try out a different SD card
Hello, how to program controllers via python ? Or where can I find information ?
depends on what kind of controller
the first place to find information about how to program some X microcontroller would be its datasheet
also , not every microcontroller supports to be programmed with python
C/C++ is more widely used for microcontrollers
some microcontrollers support a derivative of python called micropython or circuitpython
Well, does arduino support Python ?
which specific arduino ??
arduino makes loads of dev boards, which specific are we talking about here ?
some of them support circuitpython/micropython, some only support C/C++
if you want to write full fledged python, you probably need a single board computer like raspberry pi 3 or 4 or 5 or zero 2 w etc
for microcontrollers, you are usually limited to writing micropython
Uno, nano
the nano cant , nor the UNO R3
I wonder what the implications for the microcontroller world will be. https://youtu.be/HmM9tHwfN5M
What if your body could become a USB cable? Ixana, a cutting-edge wearable hardware company, is revolutionizing how we connect our devices by using our bodies as conductors.
Subscribe to Freethink on YouTube ► https://freeth.ink/youtube-subscribe
Up Next ► Former SpaceX engineer invents a “Robotic Blacksmith Army” https://www.youtube.com/watch...
maybe pyfirmata is what you're looking for
Hey yall, is there any library or any way that helps me(client) mark destinations on the map to command my robot car to travel to that marked destination.
I'm using Pi 4 with a GPS Module and for app I'm developing it using React Native with react-native-maps lib to implement a map into my app. I have no idea how to communicate from client to my Pi 4 and give destinations to it.
If you have any vids/websites or you have any guidance for me then please LMK I'm ready to listen. I did not start yet, still in the process of planning everything.
what is your question ?
aight , nw , post it when u are available
Yea sure I will be back in a bit then
Skibdi
and please make sure yuou describe all the things about your issue , the error , the code , a photo of your setup , a circuit diagram , basically everything that is relevent
dont just ask stuff like "is anyone there" then wait for someone to reply "show code"
Please don't spam channels with off topic messages.
May I ask a question my apologies
Freely ask the question man, we decide afterwards if ya need to apologise or not.
Are you sure
Is there any spectrometer myths which it would just be a prism connecting to a filter and a camera with a light
Hi so my microcontroller is connected to my pc
But the pymakr extension doesn't show it
So how to I make it so that my ESP32 is visible
Cause I could connect it to Thonny and code there using micropython but something is wrong with VScode
Also what is wrong with this code?
import machine
import time
motorServo = machine.Pin(18, machine.Pin.OUT)
sw = machine.Pin(0, machine.Pin.IN)
def rotate_motor_ntimes(num, t_on, t_off, rotation_degree, msg):
counter = 0
while (counter < num):
motorServo.on()
time.sleep(t_on)
motorServo.off()
time.sleep(t_off)
counter +=1
print (msg)
while True:
if (sw.value() == 0):
rotate_motor_ntimes(10, 2, 4, 90, 'Done.')
whats better, an rpi 4b or 5b?
What equipment will I need to get into microcontrollers (aside from the circuits themselves)? Also please provide the links and possible total cost. I want to get into this area but main issues is the cost. Luckily, managed to get a job at supermarket (starting next week) but dont want to spend too much as I need to set aside some money for my tuition fees
lowest cost is use a simulator https://wokwi.com/
how close is it to the actual hardware (like how good is it as a simulator)
pretty good , works pretty much like the actual hardware , from what i have used
Know any good resources for learning about electronics? Something to help learn the basics quick and get onto making projects
so?
If i wanna get started with robotics and mechatronics, how do I even start?
like everybody, by blinking a led
YouTube to get a bunch of ideas these days
lmaooo fr
I started making a MicroPython driver for CrateDB, early days here but here you go: https://github.com/simonprickett/microcrate
Who here has made a romantic hand with her approximate to human skin my apologies
!ban 868137138091343925 3w You've been told to stop with this kind of message and this specific one is absolutely against our code of conduct. If you want to continue engaging in our community then consider our code of conduct and adhering to it going forward.
:incoming_envelope: :ok_hand: applied ban to @main nacelle until <t:1730852727:f> (21 days).
dumb question: could one theoretically use an Arduino as a means of adding extra GPIO pins to a raspberry pi
it is common practice
and a very simple way to do it is avail to drive with cpython https://github.com/MrYsLab/telemetrix-aio
althoug an arduino might be overkill depending on what you are doing
if you want to control lots of outputs that are not really high speed , you can use shift register ICs
ex- controlling lots and lots of LEDs or relays etc
not full fledged python , but micropython , yes
Hello everyone, I’m pretty new to python(for about 3 months ) but I’ve trying to push myself to learn through programming electrical components on a bread board. The dream is like log the temp in my room in the morning and use a 4 digit 7 segment display for current temp. But I’ve been struggling with understanding my understanding of electrical circuits and the general flow of everything. Also, I’ve been learning bash on my Pi 5 for about the same amount of time as I’ve been learning python. So it’s been a learning as I’m going experience but not any insurmountable. Would anyone happen have resources you any would recommend for a novice?
I did a project similar (without the segment display)
Although here are something I did use the, RPi.GPIO Library, I got a DHT11, and a Raspberry GPIO header (if that's what it is), as you've got a bread board I did stumble across some tutorials for the wiring. I'm probably not much help as all I'm good at is putting in 3 wires into GPIO. I'll share a screen shot of what things I got.
Thanks for help, I have the DH11 and a very loose idea of how to use the GPIOzero library to make a LED blink, but only without the expansion board. I have a photo on what mine looks like.
I might be able to give you a general idea, but do you have a data sheet for your expansion board or know what voltage the + is giving out? I'm no sure actually after some research, I didn't use a bread board and I have no idea how to use them
Hello, everyone! I have a question for those who once worked with pySerial.
So what is the point of the question, I am trying to access the controller through the COM port using pySerial.
The port connects as it should, I get the value is_connected true, but when I request some data, the response is empty.
This controller, it's an FPV controller, so I can also open these settings through BetaFlight which has its own CLI, but I want to use only python code.
But interestingly, after I run some commands in the BetaFlight CLI, and disconnect to release port access, my own code starts working. However, if I unplug the USB and plug it back in again the same thing...doesn't work
My guess is that my code is, shall we say, unable to "wake up" the controller. Which, in turn, Betaflight successfully does, but I don't know how it does it 🙂
Maybe there are some parameters or methods to fix it? I will be grateful for help or advice on where to look for an answer.
Thank you
port = '/dev/cu.usbmodem0x80000001'
baudrate = 115200
import serial
import time
def read_vtxtable():
try:
ser = serial.Serial(port, baudrate, timeout=5, parity=serial.PARITY_NONE, stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS)
time.sleep(2)
except serial.SerialException as e:
print(f"Cant open this port {port}: {e}")
return []
# Trying to initialize process and make controller alive
ser.write('status\n'.encode())
time.sleep(0.05)
# Asking controller about vtx data
ser.write('vtxtable\n'.encode())
time.sleep(0.05)
response = ""
start_time = time.time()
while time.time() - start_time < 5:
if ser.in_waiting > 0:
response += ser.read(ser.in_waiting).decode()
time.sleep(0.05)
ser.close()
return response
vtxtable_data = read_vtxtable()
print(vtxtable_data)
@whole meadow Have you tried parameters rtscts and /or dsrdtr ? For example (and if I remember correctly) the latter happens to reset an Arduino Uno R3, so it may be that your mysterious controller also uses hardware handshake.
hello, i am trying to control servos through an arduino using the processing app. i know its not python but the entire internet cant seem to solve this, or at least help me. i was recomended to try here. I followed this tutorial https://youtu.be/MUM8_4mWxng?si=MgqxrN8TLcfzVu27 but it never talks about how to add buttons, only how to add joysticks to the code. if anyone could take a look, i bet it is simple but im new to this.
Read the full tutorial at https://www.makeuseof.com/tag/arduino-robot-game-controller/
Today we will be exploring a creative way to control a servo using Processing, and an Xbox360 controller. If you are already pretty game development savvy, you might be interested in our Custom Game Controller tutorial, which uses Unity.
********************...
Indeed, your chances of getting a response here are pretty low (read: close to inexistent) so you have a few options, which are more sensible to me:
- post your question in Arduino Discord
- post your question on forum.processing.org
- post your question on discourse.processing.org
⚠️ Be wise enough to not cross post to spare multiple people from wasting their time giving uncorrelated and potentially contradicting answers.
Tip: you don't ask your mechanic how to prepare a pie, do you.
i think the roadblock for not getting the answer would be that
people have to watch a 22 minute just to understand what he wants to make
It would be easier for people if you give a TLDR , show photos of what you have done , your code etc so that people get more info about your setup
buy one of those elegoo super starter kits for 50$
if you like it, maybe buy more
then eventually you can start doing more advanced projects
Guys I tried to open my old set-top box but I am confused with this type of motherboard. Can anyone explain to me its parts or can I use it in my projects
those cylinder type things are capacitors , that square black thing with blue line on top is a transformer , that small black thing with 8 legs is an IC
if i were you , i would just salvage the transformer , try to see if IC is worth salvaging or not , maybe check for some salvage worthy connectors and call it a day
stuff like small capacitors, resistors , etc is not usually worth salvaging
Is this of any use? Can I use it in any project
"can i use this in a project"
has a very subjective answer , it all dependss on what kind of project
but 99% of the time , boards made for a specific application like the one you have showed cannt be used "as is" in any project , just salvage parts and use them
also i am not sure how your questions concern python or microcontrollers in any way.....
yeah?
Stop pinging the role.
- This is not the appropriate channel
- Please read #voice-verification
- If you need to contact moderators and it's not urgent, then DM @atomic flume
sorry men 🙂
Stoop mate, I am getting constantly pinged
love you body
Tf?
no i mean thanks men
This is going to be my only warning to stay on topic in this channel.
Also, please change your nickname to not be blank.
https://electronics.stackexchange.com/questions/82553/datasheet-for-this-processorm3329-cpu-mips-architecture looks like a M3329 mips chip. Have to search around how to use it if possible. Might be more work than its worth but anything is possible
Made this today for the amp meter, its a live volt amp watt meter graph
tasty
is there a library that connects from esp32 to bt speaker, mac adress ect, audio, ect...?
We don't really appreciate lmgtfy and similar links in this server
Ok. Noted. Do you have a more diplomatic approach to favour?
(Especially when you suspect the OP should have done some prior research)
Help them learn how to do some research.
Break down the question into blocks, and explain how you approach each block.
It is easy to think that a quick search is the answer, but if you don't know enough to know what keywords to search for, or how to discern between different results, it's easy be overwhelmed.
And if you're not in a position to do that, because it is a lot of work, then don't engage and keep the space open for others to do it. It's ok to not have time, but everyone starts at different square 1s, and there's lots of reasons that what feels like simple research is actually a boon of your experience. So teaching folks how to look into stuff, and discern the helpful from not helpful results is a major way to help folks grow
Fair. Thanks.
I been looking for a few days now testing here and there with no luck with a certain bt audio library. I thought I seen most of his github work and comments. Some how the link you sent me was the one I think takes me to the correct answer and code(I'd been editing a different code for days with no luck from same author). I have been looking high and dry then you really came through. Somehow Google wasn't taking me where I needed to be but your link was spot on. It made me realize the code is way simpler then I thought. Gonna try and make some progress on it later cause I feel its a important project. Thank you so much
FTR I ceased to use Google from the day it was advertised to bias its results according to search habits (short: a long time ago). I only use DuckDuckGo now. It doesn't guarantee there's no bias but at least searches are consistent. With that said I didn't want to sound/look harsh so if that's how my response felt like, that was unintentional, sorry for that :).
I appreciate you bro, thank you
what device would you guys recommend to measure power consumption of devices that are in light sleep / deep sleep (so current would range from few milliamps upto few tens of microamps) ??
So I have a raspberry Pi 4 2gb model and I tried running an object detection script on it which would tell me where to turn my camera so there's no object in front of it. It uses open cv and pre-trained model (yolov3). Issue is that when I run it on my pi, my open cv window never appears tho according to my camera its on, and after that my python process stops with a message in my terminal just saying "Killed" and I really have 0 idea what's going on.
Ina226 with proper resistor shunt. Can ask ai or someone to figure out the shunt needs . there's a better module but this is the ina226 is the mid budget and very accurate. The more tunned in the shunt the more exact readings you will get. If u want the best module ill look it up and get back. I chose a r010 resistor for my ina226 cause I'm using a 100w solar panel and wanted a shunt for around 6amps max to but when it comes to small micro amps then the r010 resistor would not be as accurate prob within 100 mili amps I'm guessing bit with the right shunt and code should be about as accurate as a dialed in store bought tunned in amp meter. I can't say for micro amps accuracy but I'm thinking the upgraded version of the ina226 will be within closer accuracy to what your looking for
I see more than one rx TX data pins on chip, do they all connect to same rx TX data lines or do u guys think they are seporate. Hoping to listen in on the TX output
Not sure if I should test pin 18 and 19 or pin 1 and 2 But mainly TX not TX so much at this point
i dont want something that i have to second guess "is this correct or not " , i just want something i can trust
also i am not really sure if the sensor can provide accurate readings at that range , have you tried it / seen anyone try it ?
what does the datasheet say ?
I have one, for my readings its very accurate on r010 resistor, for the more smaller amps I have not seen that done in person with needed resistor except for seeing on youtube, looked to be very accurate for some folks, just have to look if the +- is I'm your range. if you send me a dm I can look it up later. There's another ina module that has higher accuracy but cost about 15$. I can find it later if ya like, I can also look up the shunt needed(very important). The shunt really determines a lot of accuracy for these modules. Other than that I'm not sure what the best regular product is to buy. I just use a standard multimeter other than the module cause its all I have at the moment
@elfin sphinx I think the first tx is the one used but can be configured to use multiple or reconfigured or all in different ways. I also asked another source but I'm still not clear whats really going on
for my readings its very accurate on r010 resistor
are you reading microamps/milliamps ?
except for seeing on youtube
well , do you have a link for it ?
just have to look if the +- is I'm your range
its not exactly that simple
I can find it later if ya like
I was looking for someone who has some firsthand experience with this
I have googled, found some ICs that look they could work
but at the end of the day ,its something i threw together , i dont have any way of verifying if its accurate
nor do i have the equipment needed to properly calibrate it
I can also look up the shunt needed(very important)
The shunt just determines the range , the critcal stuff is ADC used
Also , when you are measuring microamps of current , you dont want the shunt to draw more current than the actual load and alter the readings
All the reliable options i have yet found boil down to high end bench multimeters or power profiler kits , i am looking if there is some middle ground
I currently use a power meter I made with INA current sensor and its "ok" , not the best. The readings fluctuate randomly , sometimes it conflicts with my multimeter etc etc , so i just dont want there to be doubt
thats not a pin diagram , i want you to look at a pin diagram
which pins do you think are the two conflicting ones ??
per the pin diagram , looks like you can use pins 11 and 13 for serial communication on port 1
@elfin sphinx miliamps, but like I said my setup is not designed for micro or miliamps exact readings but the range I set it for goes 6 digits past the decimal, yes the chip on the module plays the major role in accuracy so ill try and find the most accurate one for you in a bit but second to the chip in the shunt to be dialed in. Ill find the YouTube video too, was very tired last night after watching the Mike Tyson fight. The plus and minus I refered to is referee to in the one chip spec and being more accurate .1% or something of that nature. I think the ina chips might be the best budget amp multimeter for Arduino and accuracy one can buy but I could be wrong. What ics are you leaning toward to? The calibration is done in arduino ide through the code basically 3 factory shunts you can choose from. The 15$ ina ( more expensive one) is the most calibrated by factory out the box with extra high low features to insure accuracy. As far as verifying it for 100% accuracy you would probably need a side by side with a known accurate meter. At the moment I don't have a way to verify accuracy either with a side by side, I hope to try the more expensive ina in the future to verify accuracy with a smaller shunt for similar reasons as you. And I agree and those micro mili amps accuracy is super important. I just woke up but ill get back asap today with the info
@elfin sphinx this is a display I designed for the ina specifically to read on a graph and show history, it works amazing so far. I havnt released to the public yet but hopefully soon. It has some really nice integrations and extra features not seen anywhere else based on the cyd.
but like I said my setup is not designed for micro or miliamps exact readings
well thats pretty much what i am looking for
so ill try and find the most accurate one for you
there is no need , its pretty easy to find stuff using googling and i can google myself and read datasheets , buti dont want the theory part
I want to know what people actually use , how stuff works in the real world
for example - there are tons and tons of multimeters out there with "high accuracy and precision" on the market , but can we trust all of them ? ofcourse not , thats why expereience of people is important
I am not looking for someone to google the answers for me
What ics are you leaning toward to?
I would like to avoid the DIY router if possible
The calibration is done in arduino ide through the code basically 3 factory shunts you can choose from
Thats not the calibration i am talking about
like sure , the chip will show me current 6 digits or 8 digits or whatever , but is what it saying actually accurate ? are the readings stable ? etc etc
"on paper" pretty much every IC is "good"
In conclusion , i am not really looking for you to do some googling about "best ICs to monitor low currents" , like i can do that . I want to see what people use in their day to day life
the only good options i have seen so far are expensive bench multimeters and power profiler kits, wondering if there is anything else aswell
nicee
My research is more based on watching hours of videos on others ina modules, yes Google but also chat gpt and what's shown on aliexpress going through one by one. The one I found with the highest ina accuracy was found on aliexpress and not google, there's a ton of variations that are not the easiest to navigate on there site. I hope you find what your looking for, best regards.
i mean , you dont really need all that , just go to a reliable electronics part website like mouser , search what you are looking for and use the filters they have
@elfin sphinx https://youtu.be/otcygsfQmX0 can use auto translate, its a very informative video and there's a couple other really good ones when it comes to accuracy
Друзья кому нужны платы обращайтесь (отдам по вкусной цене), только по Украине.
Instagram , следи за мной - https://www.instagram.com/taras.burko
Платы можно здесь JLCPCB - https://jlcpcb.com
Много интересного материала, смотри в этом видео - https://youtu.be/1ZTTSeCOSwo
Arduino Pro mini - https://ali.ski/wwLO1Z
INA226 - https://ali.ski/CF...
@elfin sphinx awesome thank you, I been there once but I forgot all about it. Much apprecieted.
@elfin sphinx the ina260 is the most accurate I found so far without testing. https://youtu.be/pu8YlI39l8Y
Texas Instruments INA260 Digital Current/Power Monitor comes with an I2C and SMBus™-compatible interface with an integrated precision shunt resistor. This device enables high-accuracy current and power measurements and over-current detection at common-mode voltages.
Learn More: http://mou.sr/2m8kcPi
yea , i dont think i want to look for a DIY solution , there is pretty much no way for me to verify if what i made is actaully saying correct things
Please let us know if you find a better affordable solution, I'm interested in the precise precision as well for micro and miliamps range
guys, if anyone here in Arduino Community, then please request them to unban me...
We do not handle the moderation of other servers here. Please use their appeal process and do not bring those issues into this space.
I do not know. This is probably not going to be the place to find out how to do so either.
oh ok thanks a lot
hmm, i would really like to hear your opinion and if you could also help me...
There is this: https://www.nordicsemi.com/Products/Development-hardware/Power-Profiler-Kit-2
which is on my wishlist/going to be my first purchase if I ever need to design something that needs a long battery life. So I haven't used it but it seems pretty well liked from the folks I've seen use it.
To supplement it's measurement scale, and to predict things like 10y battery life on a coin cell, you can build multiple prototypes and run a test over like a day or week per prototype, then you'll get a sense of the variance in power usage by component variance which usually becomes the significant source of error in prediction at that level. I don't know if you're trying to measure that fine of a detail, but it's a helpful methodology regardless
yep same , thats on my wishlist too
i have seen all the "professional" people recommend it
There's also a number of electrical engineers who, at least partially, specialize in low power electronics or low power embedded programming. If you've seen someone professional ish recommend it, it might be possible to email them and ask what they'd recommend given your constraints
So many parts to choose from
I used to be part of the Helper community on Arduino Discord. I know the moderators and I also know they don't ban out of a spree or just because they don't like you. Rules are pretty clear on the server and people who get banned in general are ones who did not bother reading/applying them. I'm speaking out of experience but I admit I don't know your case.
EDIT: I also know they don't ban without prior warning.
yes
I think it s bit in russian
I'm tryna solve an issue involving ROS2. We're builsing a robot that uses lidar and camera feed to detect objects in an environment, move up to them, take pictures from a bunch of angles then move onto the next. Our original plan was to have it do a lidar scan after each object has been inspected but I literally just realised we have no way to know where the robot is on the occupancy grid. Can anyone help?
Does anyone have a good recommendation for the specific model of raspberry pi i should be using when i want to attach sensors to it?
I can make one
pretty much any raspberry pi will work to interface with most common sensor modules
it dpends on what you want the raspberry pi to do (please explain everything in detail )
im looking to use it for monitoring the concentration of chlorine in a liquid
i am still trying to decide on how i should do it
ive asked chatgpt n one method which uses light seems much simpler, but i prefer not to choose it cuz i need to be able to measure the lvl of concentration
im assuming dat im sticking some sort of sensor into the wall of the liquid's container
ok , lets say you choose some XYZ raspberry pi , it interfaces with the sensor and gets the chlorine level data , what next ?? how would you know what the value is ??
i was unknowingly and suddenly banned, without prior warning, and i am really disappointed.
you can ask your question here too
arduino is not the only server around
yes true
thanks a lot
i was just feeling humiliated for being kicked out of the server for no specified reason, and also not able to appeal to any moderators. but now i am fine, i can ask my questions here also.
yeah
so... whats the question ??
nah nothing man...
i am just working on a line following system, with an IR array, and I am designing a support for my IR array to hang from the metal chassis.
this is the AGV i'm working on for now, its just a prototype, its a bit shabby too. I have also mounted a robotic arm, which uses speed control instead of position control. My MG996R 180deg motors stop working every 3 days, its an expensive trash. the gears i get in it are plastic, and i don't want to manually change the gears of the servo to metal. its a tedious job and i do it only in emergency. so i use 360deg servo, which works well with encoders.
I am using a lot of cool stuff, like NEMA23, A4988 Stepper Motor Driver, l298n, arduino giga shield and giga, encoders, dc motors and a tailormade PCB for Servo Operations, i am also using Raspberry Pi for Master-Slave connection, like the main head of the swarm of AGVs, its a cool project i'm working on. I'm also using Radiofrequency to communicate V2V in AGVs.
I was thinking to use SLAM for natural mapping of its surroundings using lidar, but its too expensive as i have already crossed my budget line
sorry for late reply man...
Has your account been hacked recently? Spam and sharing links that spread ads or suspected to link to malicious web sites are also subject for a ban.
i dont know brother if its hacked or not
you are saying right, but i dont think my account is hacked
i dont know actually
If you don't know, then you can't tell if it has been or not.
how to notice if it is hacked or not bro?
ehh i wouldnt be surprised if the mods on arduino server banned you after small inconvinience to a helper or smth , all of them form like a clout , most people are good , but there are those some people who just..
i have observed that they do lots of stuff without directly telling people
also not having a ban appeal for such a big community is crazy to me
anyway , dont think discussing the policies of arduino server is suited for this channel , so...
yea man, i understand, thanks a lot
There are also a lot of articles about security on Discord web site. You should also take a look.
I can't reasonably share them all here.
yea
no problem my friend
but i don't have any symptoms of my discord getting hacked. Let's forget whatever happened, and move forward 😄
That's the whole point: there is no symptom at all. That's the purpose of hacking an account: be as discrete as possible.
yes absolutely right
anyways
no problem, whatever happened is done now... lets talk something productive
@dusk light are you working on any projects? like I am working on AGV...
I am indeed. My current project is an alarm clock with a AVR microcontroller. Unrelated to Python though.
oh you are using AVR, nice for small applications though
which type of AVR?
- ATmega328 (the main clock engine and state machine manager)
- ATtiny25 (melody/tone generator)
melody generator too
so, are you programming it using arduino only
or esp?
I use only C++ and my own framework.
oh cool
I haven't touched ESP yet.
hmmm
whats your age btw, and how long have you been working with microcontrollers?
just asking for reference
i am 26 and i have completed my graduation from MIT
I generally don't disclose that information 😉
Just know that I grew up in a time internet didn't exist yet.
older than me at least 🤣🤣
no problem, you can keep privacy bro
so, have you worked with Arduinos and ESPs yet?
like the projects which make you soooo irritated and exhausted?
because, during my college time, i tried making a home automation system, and it took me 2 semesters to complete it
but i could sell it and earn more than $400
I have worked with Arduino (I suppose you mean the microcontroller board and the IDE).
I've been busy with that clock project for more than six months now (for reference). One semester is pretty quick if you asked me, given the level of complexity required for a home automation system...
hmmm
actually
but my peers made it simple and easy so they could complete it within 3 months
i was using machine learning to understand behavorial complexions
and various hi-fi technological systems and components
so it took me a lot of time
the most useful topic for me to know was the PID controller system
Proportional Integral Derivative
it was little confusing, but slowly as i got hold on it, it became really easy and fun...
UART / Fingerprint Sensor not working by Simple Test
Out of my depth here. Trying to connect the RPi to a fingerprint sensor. Tested some code which didn't work. Tried to connect the 2 UART pins together (GPIO 14 and 15) and gives me a blank response. Even if I connect the fingerprint sensor on those pins, I get a blank response.
!cban 996271968179462205 This server is not the place to advertise your tiktok account.
:incoming_envelope: :ok_hand: applied ban to @quasi cobalt permanently.
I have a question, if i were making a project that needed to 1. connect to the internet, 2. display things on a screen, and 3. be compatable with some other hard ware what computer would i use. a rasp pi?
Then for what im displaying on the screen which is basically a big menu i would want it to be like hard inside the rasp pi so would i have to make my own pi distro?
Cause i dont want to have to turn it on and then run my program to display whats on the screen i just want to be able to turn it on and it will open to what i want to display
what hardware exactly a rpi isn't really necessary u could also use an esp32 with oled or lcd modules, if u however use a rpi u can either use its hdmi output or display connector slot to display stuff, but rpi will basically work like a normal pc or desktop so basically u just want to schedule ur script to run on startup
Ok I’m looking at the ESP32 and it seems like a great option
Thanks!
Oh wait
Also is there a way I can integrate python with it?
u can look into micropython but you are probably better off just running normal cpp code its much easier with amount of examples available online
Ok
what do you mean by "connect to internet" ?? what do you want to do by connecting to it ??
what do you want to display on t he screen ??
and what do you mean by "be compatible with some other hardware "
it would be best if you explained your project to get the best choice
Do you have an oscilloscope to confirm there's a pulse train output from the assigned Tx pin?
And what RPi are we talking about? RP2040? Or SBC version 1-5?
Finally /dev/ttyAMA10 looks weird. Are you sure that peripheral is correct? On SBC Raspberry Pi boards, /dev/ttyAMA0 (not /dev/ttyAMA10) is the debugging console. You may want to double check that device name.
I love using raspberry pi 4 with 8gb, does great for a lot of the internet and uses duel screen 4k or less. I use it mostly with arduino ide on raspian to program esp32 and is great on energy. It seem great with the newest os 64 bit. Very stable. Esp32 is a champ with Bluetooth and wifi. Cheap yellow display esp32 is a new product with built in tft screens that are very nice too
yeah i got a tft screen for it and the bluetooth, price was my main reason
Nice
but FYI , those two are VERY different things meant for different purposes
so the "better one" could only be decided if we know more about your project
its not as simple as "get rpi if you have money get esp32 if u want smth cheap"
@elfin sphinx options are always good, what do you recomend?
Cant suggest without knowing use case , there are boards based on nrf chips , rp2040 boards, stm32 boards that might be used based on use case. You can even hook up a serial wifi or wireless module to Arduino and use that , it all depends
Thanks
https://paste.pythondiscord.com/JYMA
if anyone here has experience with x86 architecture can you please tell me if my code is correct for the "MOV r32, m32" instruction?
Best starter kit and tools for building microcontrollers. Id like to practice with wifi chips and implementing Python code to automate something simple on a rc car.
For Wifi, use the esp32
Anyone have a discord server for microcontrollers, coding, robotics and AI stuff? I need to find communities that share my interests
Can anyone tell me how can i get a precise 1 microsec delay in python on RPI zero 2w, I have tried time.sleep() but it is highly inaccurate.
What is the problem you are trying to solve? Python is inherently non deterministic when it comes to super accurate timing. GC languages struggle with it. There are probably some ways around it, but there is always a chance the GC will start or something will lock the GIL and you will miss your timing window.
There is also an element of OS/cpu scheduler tolerance. It is really hard to guarantee that you are going to be getting all of the cycles on a given core for your entire runtime. If the OS decides to give some cycles away to another program you could miss your timing and python can’t do anything about it.
There are entire specialized operating systems that guarantee execution determinism. Linux, windows, and Mac are not those.
That being said there are things you can do to help get close to the timing, but I’m not sure if you will ever be 100% sure of hitting it within idk, 1%.
As KalaldinCodes pointed out, perfect precision isn't going to really work. So depending on what you're aiming for micro/circuit python might not be what you need, you might need to look for a real time operating system (rtos)
https://forums.freertos.org/t/using-freertos-with-the-raspberry-pi-pico-blog-series/16497
if perfect isn't as necessary, something similar might be doable but because your level of precision is so small, a microsecond, it might not be possible at all in circuit python. A single line of code could take more than a microsecond to fully complete.
To maintain a constant frequency (at lets say, a few milliseconds/seconds level) you could approach it like this: get a timestamp, do your operation, take a new timestamp, and then sleep for the your period delay minus your time spent in the operation
time.monotonic_ns()
will return an int, but because the microcontrollers don't have huge bits of precision for floats, you'll need to be careful about how you use it. It'll be best to take your stop time minus your start time, then divide that number by 10^9 to turn it into a float. if the number is small enough though, you'll end up with an underflow error and you'll just get a command to sleep for 0 seconds
May I ask a question?
Yes
Is a raspberry or Arduino better for microcontrols any censor use
I've only used sensors on arduino and esp32, sensors work amazing on on microcontrollers but I cant speak for sensors on raspberry pi personally. Kinda more depends on your goals to find out what's better.
both can talk to a variety of sensors , which one of the two is suited for your project depends on the project
so you should t ell us more aobut the project
in general , raspberry pi is basically a whole computer shrunk down , whereas arduino is something of much much much low power made to talk to sensor and control stuff
so if all you do is read some simple sensor data , you dont really need the rpi's computing power , arduino can do it just fine as well
you would be wasting performance and money and power if you used rpi
It's supposed to be for a hexapod
and what "sensor" are we talking about here ?
camra tilt and tempetuer sensors
I hope to build the hexapod too one day, that thing is super futuristic, the control menus are top notch too. Great project! The amount of movement in each leg is like nothing I've seen in any other robot yet
If I wanted to create an LED matrix powered by python, is it a bad idea to buy a matrix from aliexpress rather than an adafruit one?
I'm worried about python library support that will power this project
adafruit seems to have some tools figured out and i dont want to be stuck in the mud by buying a cheaper alibaba led matrix
What's everyone's favorite projects these days? DIY 24 channel pico logic analyzer looks promising
Right now I have a DFPlayerMini hooked up to my ESP32-s3 and a speaker and I can play audio with it when I put audio on the sd card. I was wondering if It would be possible to somehow be able to upload audio to the sd card from the ESP32 so I don't have to unplug it plug it in my computer and upload files. The ESP32 would just write to the SD card and the DFPlayerMini would be able to play the added files and all.
Yes, writing to the SD can be done over SPI
But then how does the dfplayermini access it ?
short answer is , no
you cant write to a SD card that is plugged into the dfplayer module from ESP32
the long answer is , maybe
if you really want to stick to using dfplayer module, then
like , instead of plugging the card directly into the df player board , what you can do is , solder wires to a simple SD card module used to communicate to a microcontroller , plug your SD card into that , then design some sort of switching circuit using mosfets or smth similar that switches the SD card between the ESP32 and the dfplayer board
so when ESP32 wants to write files to it , the switching circuit will break the connections between df player module and the sd card and make connections between the SD card and ESP32 and vice versa
and this is exteramly complicated for no reason
like ,if you are at that stage , you might as well use the SD card directly with ESP32 and use some sort of I2S amplifier to play sound
also there is always the big question of , where is ESP32 getting the files from ?? if you have to plug your ESP32 into something to upload files , you might asw well just unplug the Sd card and use that
So making your own esp32 player with dac and sd card holder to get digital sound might be the way to go without df player? I'm wondering if spiffs has ota and if it would work in this situation for wireless updating of files
Yeah that sounds out of my capabilities
Well the esp32 dac is insanely weak
External 16bit dac with 12c or 12s. Also ota is built into arduino ide. Its possible the project has been done on github I'm guessing but I'm not sure. I been working with bluetooth source and sink codes, was able to send .mp3 from one esp32 to bt speaker but it was 8bit and super slowed down. I wasn't able to get it to play at the correct speed with built in esp32 dac but suspect a better external dac would be easier to work with. That's a similar but different project but from what Ive noticed it's not having the external dac that holds many projects back for esp32
$2 for 2Layer, 5pcs & $5 for 4Layer, 5pcs: https://jlcpcb.com
Previous video: https://youtu.be/yEbbhTw0kno
Bitlunis I2S ESP32 video: https://youtu.be/6PGrsZmYAJ0
I2C video: https://youtu.be/_fgWQ3TIhyE
SPI video: https://youtu.be/fvOAbDMzoks
CAN video: https://youtu.be/PL0TPdrhMuI
Facebook: https://www.facebook.com/greatscottlab
Twitter: https:/...
but wouldnbt a external dac complicate things more like what saul goodman said
Define "weak" ?
especially with ble
i dont even know
lol
So you want to use something else but don't know why you would have to?
Why not just start with what you have and see/check if you're happy with it?
Why would it be easier with a Raspberry Pi? Actually this would be the exact opposite: there's no DAC in that beast, unlike the ESP32, which has two and makes it possible for stereo.
would you need a dac to stream audio to a bluetooth speaker or a aux jack?
Your initial question was about the DFPlayer, which is unrelated to bluetooth. Now if you change the context of your question along the way, make sure everyone follows you.
ok sorry
let me just write what im looking for
actually wait
i dont think a esp32 would work for this
im was gonna use a library called pytube to get the audio but wouldnt work on micropython
What do you want, exactly? We can't guide you unless you're 100% clear about that 🙂
sorry
I want to download a mp3 with a library called pytube and I want to stream that mp3 audio over bluetooth or through a headphone jack
BT and a headphone jack are two completely different and unrelated implementations...
the former being the most complex among the two.
But i dont think pytube would even work
You need a pretty beefy computer to run that
due to all its dependencies and micropython and the esp32 capabilites
which is why the rasp pi would do it?
Maybe
But since you seem to have a computer for typing here on Discord, doesn't that fit your requirement?
Doesn't it have a bluetooth link so that you can test your project?
i suppose but the project im making is sorta gonna be a portable handheld device
first time doing something like this
thats not all entirerly software
Let me rephrase now it's a bit clearer: you want to stream audio from youtube and send that to either a remote speaker system using buetooth or to wired speakers, right?
Not just "MP3", correct?
Well pytube just downloads the audio as a mp3 so no not really streaming
Technically youtube is a streaming service, so yes you're streaming in, not out (just yet).
ok
From pytube description (https://pytube.io/en/latest/):
pytube is a lightweight, Pythonic, dependency-free, library (and command-line utility) for downloading YouTube Videos.
So it's unrelated to MP3, really. Maybe you can convert audio stream to MP3 but then you need to read the documentation further as to how to do that.
Besides there's no mention of MP3, only MP4:
really?
ive used it before
you can download the streams
including a mp3 stream
I don't know what you've done but there's no mention of the term "MP3" on the documentation page. That you can fact check on your own.
but we have establshied that this couldnt be done on a esp?
That's step zero indeed.
i dont think its possible
It is not
especially with all its dependencies
It's not about dependencies, it's about the required computational power.
Stripping youtube streams from all the garbage Google sticks to it requires a heck of a lot of processing, which the ESP is not up to, in a timely fashion.
BTW YT terms of service prohibit you from doing what you want.
(that's the usual disclaimer)
so pytube is not allowed?
or what im doing?
One is not allowed to download any content from youtube other than with a browser and from the web page contents is available. IANAL though.
so how is pytube legal?
It doesn't comply with YT terms of service.
But that doesn't prevent projects such as yt-dlp, youtube-dl or pytube obviously.
ah well
they would get in trouble before me
and its not like im making something and pushing it into production
Your duty is to read terms of service to get to know exactly if/how you're at risk. You're supposed to know. And me to warn you as well, just in case. But that's your responsibility in the end right 😉
yeah
Thanks so much for the help
I have a much clearer vision of what im working on]
thanks!
will do 👍
@jolly light ok, I thought u needed mp3 file to play on speaker clearly and be able to update mp3 library only, I'm not sure about any of the youtube mp3 downloading to esp32 or streaming. Maybe gpt can help you brainstorm on how to do it and stay compliant. I think it's a cool idea but i dont know a lot about python. I'm better with c++. Seems like youtube would want something like that if it included there commercials but perhaps it could be the opposite as well.
well i think im gonna use a rasp pi
But if iwanna use it with python do i just use subproccess lib to run commands for it?
I'm not qualified to answer that
updating files in SD card over wifi uploading is def possible , i have done a project based on that previously
it was basically a wireless SD card reader , the ESP32 creates a webpage where we can see all the contents of SD card , so you can upload files to SD card and you can download files that are already on SD card
i need to look up the git repo to be more specific about how i did it but its def possible
external dac module will actually make things a little complicated but it will give you full control over everything happening , because you have full control over how the audio module behaves and you have full access to SD card bcoz it will be controlled by ESP32 , not the MP3 module itself
https://www.youtube.com/watch?v=m-MPBjScNRk
i highly suggest watching this video bcoz it shows you what i2s is and how you can easily use external I2S amplifier module along with SD card to play media
Build an Internet Radio, an MP3 Player, and display microphone waveforms with an ESP32 and some I2S peripherals. Learn to use the I2S sound protocol with the ESP32.
Article with code: https://dronebotworkshop.com/esp32-i2s
More articles and tutorials: https://dronebotworkshop.com
Join the conversation on the forum: https://forum.dronebotworksho...
its the case of "bigger is not always better"
pytube is a very heavy library to run on microcontrollers
there is no way where you download youtube videos through smth like ytdl and still stay compliant with youtube tos
and unless you are a C++ pro , i highly suggest stickign to python for this project coz its much more easier to do in python
given your case , i think that is the correct option
i assume you have a display attached to your raspberry pi to allow people to play what they want ??
as for the audio , you can get one of those GPIO hats for raspberry pi to act as DAC
otherwise ,if you are going to use a HDMI dispaly , then those usually have a 3.5mm jack as audio output which you can use with an amplifier to get audio output
there is also the option of using a cheap USB soudcard module that also has a 3.5mm output jack
there is a lot of options it all comes down what you want in your specific case
but downloading mp3 from youtube and then playing it to just listen to some songs sounds inefficient
you might wanna look into spotify plaback on raspberry pi tbh
https://www.youtube.com/watch?v=ZxdhG1OhVng look at this video for example
Follow me on twitter: https://twitter.com/gvy_dvpont
Support this channel (thank you!): https://www.buymeacoffee.com/guydupont
Email: gvy.dvpont@gmail.com
PART 2 HERE: https://youtu.be/q0pUPab7Rms
^ I answer FAQ's, show hardware upgrades (cough headphone jack, usb-c cough), and demo some gaming.
RE: The high pitched noise - SORRY! I though...
For the jack would something f like this work? https://learn.adafruit.com/adding-basic-audio-ouput-to-raspberry-pi-zero/pi-zero-pwm-audio
So wouldn’t steaming just downloading chunks of lame thing and buffering as it goes on perhaps I could replicate something like that?
it will "work" but the quality wont be as good as with a nice external dac
Might be fun to do so I’ll try
from what i could catch from the conversation earlier , it looks like , the library first downloads the whole thing , and then plays it
also , for streaming music, i would try and use a dedicated music streaming service
For legal purposes?
yep totally , doesnt hurt to try it out
no , for convinience
bcoz for something like youtube, how would you know which song you are playing , there could exist videos with same title name but like totally different actual audio
there might not be audio that u want
there could also be random stuff added into audio
it could play the "video version" of the song ( a lot of songs have a different video version and a different audio version )
also its easier to pull up album info , artist info and all with a streaming service
i mean , the "legal reasons" really come into play strongly if you try to distribute your proiduct to lot of people
for personal usage , youtube isnt really gonna come after you with a legal case or smth
Well I figured out that I could use the YouTube data api to get song name artist whatever from YouTube music and the when you play a song from YouTube music it’s literally just a YouTube video
Yeah that’s what I was thinking Im not disturbing it
what i said still stands
True but why not try it out 😄
lets say for example yo uwanted to play "we dont talk anymore "
the official music video has a 2-3 second random noise before starting
but the spotify version is the correct "audio" version
https://www.youtube.com/watch?v=3AtDnEC4zak
https://open.spotify.com/track/06KyNuuMOX1ROXRhj787tj
this is just an example , there is lot of stuff like this , where the actual song differes from music video
also with something liek spotify , you get access to playlists , made by you as well as made by other people , or spotify , that way you can discover new music as well
the final decision is obv yours , i was just pointing out the differences in the two approaches
if you know you are gonna listen to the same fixed set of songs and maybe add new songs occasinally , then you can use a diy streaming service like navidrome , that is what i use at least. Its basically like "make your own spotify" (minus the cool features like aut generated playlist and all that spotify has)
Maybe I’ll try both of them, but for the Spotify streaming, I thought that wasn’t possible? I thought you can only control the playback through something like your phone not stream it to the raspberry pi
I've used spiffs before but I dont remember if I did it wirelessly or not. Used it to update games on sd for game emu or something
from pyfirmata import Arduino
import pyfirmata
import time
import pyfirmata.util
port = "COM3"
board = Arduino(port)
pin = board.get_pin("a:0:i")
it = pyfirmata.util.Iterator(board)
it.start()
while True:
analog_value = pin.read()
print(analog_value)
time.sleep(0.1)
ok
so im trying to read a potentiometer
it keeps giving me errors
its driving me insane
I dont think there is a way to stay compliant either, sometimes there are legal loopholes but Google has all the best lawyers money couldn't even buy if ya wanted to
pls help, its pyfirmata for arduino bttw
ok so i gave up
decided to use pyfirmata2
documentation is lovely and for the first time, i was understanding the doc
Is that you playing the piano ? @half junco
what?
are you refering to my yt?
then yes
that was me 2 years ago
i don't play anymore
I missed this thread.. Just saw this, seems to be relevant. (I also posted in data&AI, sorry).. Check this new NVIDIA OUT!!
https://www.youtube.com/watch?v=QHBr8hekCzg
FREE GIVEAWAY OF JENSEN-HUANG-SIGNED ORIN NANO SUPER! See Below!
Join Dave as he explores NVIDIA's Jetson Orin Nano Super, a compact AI powerhouse with 1024 CUDA cores and 6 ARM cores for just $249. Learn why this could be the best AI board for your projects in robotics, IoT, or AI development. Free Sample of my Book on the Spectrum: https://a...
I don't think this relates to microcontrollers, let alone Python in general...
Hey. I use pyboard with micropython and tried last 2 hours to get some key values that are behind the keypresses. I got some from dumpkeys, I got keycodes and scancodes from showkey and a lot more which confused me a lot. But I didn't really think about wether I need this code.
So my question is, if my pyboard should be use as a wireless keyboard, do I need know some values for emulate keypresses or does a library already this?
https://youtu.be/N9f_ElWeNF0 this launcher works great, was wondering what everyone's best thoughts on how this proccess could be done similar to load from sd card without screen. Maybe a button that associates with program that's wanted needed by number needed to install from sd card
The bmorcelli CYD Launcher is a versatile tool for Esp32 2432S028 (cheap yellow display) users. It simplifies application management by allowing you to launch applications stored on an SD card, eliminating the need to reflash your device for each new application.
Key Features:
- SD Card App Launcher: This is the core function, enabling you to e...
I used this code as my base for a bluetooth keyboard. It's not python but maybe it might have some help on the scan codes. I had to marry this code with another scan code library to make it mostly work. I wish I could help more with python but I'm not versed enough yet. https://github.com/T-vK/ESP32-BLE-Keyboard married to this code https://github.com/fdivitto/FabGL . I'm sure there is a easier way but it's how I got it working and lots of info and the fabgl to help. Not sure if scan codes work in python but it kinda shows the framework
Bluetooth LE Keyboard library for the ESP32 (Arduino IDE compatible) - T-vK/ESP32-BLE-Keyboard
ESP32 Display Controller (VGA, PAL/NTSC Color Composite, SSD1306, ST7789, ILI9341), PS/2 Mouse and Keyboard Controller, Graphics Library, Sound Engine, Game Engine and ANSI/VT Terminal - fdivitto/F...
@tranquil robin if u would like my code I made of those combine I can provide that too
Are scancodes / keycodes standardized?
That's a great question, I'm not sure. All I know is that is that it took forever to get it to work the way I did it. Hopefully you find the more straight forward easier route.
So I understand is that keyboards sends scancodes and the OS has a file somewhere that matchs scancodes to keycodes
If it's done through bluetooth then I think its the codes are turned into strings that are sent to os where the bt stack interprets the strings and then into the os like a regular keyboard if I remember correctly but that for wireless not a direct connection to serial via wire to serial. I could be wrong but that's the best recollection I have
I think the mcu interprets the scan codes and then sends it in another format. I'm not sure if a os can interpret scan codes directly without being turned into strings first
I find out how to send and receive bytes. I also find out pyboard / micropython has this:
pyb.usb_mode('VCP+HID', hid=pyb.hid_keyboard)
And I can send data, something linke this:
hid.send(struct.pack("8B", modifier, 0x00, keycode, 0x00, 0x00, 0x00, 0x00, 0x00))
this teleported/moved my mouse down a little bit as I didn't had "hid=pyb.hid_keyboard"
I see in xev and dumpkeys 0x6b for k.
Is 0x6b also k by your project?
I just found someone else's new version that might be better than mine, I'll have to check it out but here is a link to theres. https://github.com/Hamberthm/esp32-bt2ps2 just came out this year too
I'm not sure but yes uses hex for scan codes. Here is the link to the project I was worked on. https://github.com/codemaster010/ESP32-BLE-Keyboard/tree/PS2-FabGL-BLE-Keyboard
@cloud hinge I got. I can send my pyboard any input from the my phone (Serial bluetooth app) and it emulate a keypress. Now I just have to find out what hexadecimal codes my OS uses.
I will make a github repo later for this project
Awesome, what os are you using?
PopOS, is an ubuntu OS based OS
I found out that I use the REPORT FORMAT that is explains by osdev.com and I have already check every hexadecimal number I can send to the OS.
The strange is that after hexadecimal version of 93 of the "emulated Keypresses" does nothing
Omg I had so many issues with the scan codes it was mind boggling. That's why I ended up hybridising two peoples codes and got them to work for the most part but i really have no idea how i was able to get it to work "somehow" in the long run. It was a lot of trial and error to get scan codes to work correclty
I guess this is a pyboard / firmware thing. So I prepared pyboard for this inputs, but not for system Inputs like "Sleep".
Keyboards are definitely more complex than I thought
I'm engineer, is there anything I can do?
hang around in chat , help people with their questiosn , you can scroll up and check if there are any unanswered questions that u can answer
@hollow coral check ur dm
I have a python script that feeds an arduino data from a wss feed so it can display crypto prices on the LCD display in ticker fashion. The problem is that, as far as I can tell, the python script is working fine and feeding data to the arduino as the rx light flashes every time the script output shows a priceupdate on in the terminal output. I can't run the "serial monitor" on the arduino IDE because my python script is currently using the COM3 port to feed it data. This is preventing me from using any breadcrumbs etc to try to figure out why the LD isn't displaying. I'm not entirely sure my python is sending the data in a format the Arduino can handle. I'm stuck.
https://paste.pythondiscord.com/M3SA
If I understand you correctly, you'd like to debug-print from your Arduino (which I assume is a Uno R3) to your computer, while the latter is feeding the former with data, correct?
If so, there's nothing you can do, there's only one UART available on an ATmega328. There are alternatives though.
- If you have a Mega2560, for instance, you may want to test your sketch on that one as a temporary platform.
- If you have a USB/SPI bridge/adapter, then you might communicate with your Arduino Uno R3 using SPI, not the UART, which will then be freed for use with the serial monitor. However that implies refactoring the communication protocol, so as to send data in binary form, for instance, which is more practical for that transmission method.
Well,.yes, I would like to be able to, but that's secondary to just making it work so if there's another way to monitor it like through the terminal window? I just got the Arduino for Xmas so I'm extremely green on it, although I program a little c++ it was just enough to get into trouble. The LCD works as it should with the sample test sketch. Yes Arduino Uno (Man I really know better than to leave that part out, sorry about that). It's close. I left a paste bin so someone might look at the code. It's not long or elaborate.
I'm guessing I will change it to feed from a list instead of a direct stream and I can push the ticker ticks to the list, then I can start with a message on the list as a prime. If I can get that to print, the rest "should" too. The final goal being a small portable ticker device. Both of these posts were right as I went to bed/woke up so clarity is still powering up.
THANK YOU!!
I'm afraid I cannot see other ways to monitor your board other than the alternatives I suggested.
At least not without defining a more elaborate exchange protocol, which would distinguish between raw data and information.
The concept is similar to OSI network layers. You would need only two of them: data and debug.
The third one (the hardware layer) is implied and is handled by the Arduino library in the form of Serial.print() and the like.
Aside from monitoring the board, do you see any glaringly clear errors I"m missing for being so green?
Think I found it. I had the display set up for one library and then I used a different library not realizing it hooks to the Arduino differently. Still working on it. Thank You for your help.
which library is best for pico pi /
anyone have some favorite kits they could recommend
Requirements
Why do you need
can you use python language for arduinos
As I understand it, only on some. Not the UNO R3 though (that I have been able to find so far). For my project (crypto ticker) I am using Python on a PC to get the WSS feed and send it to the Arduino (R3) via USB cable on COM3. Not really disimmilar to this video:
https://www.youtube.com/watch?v=UeybhVFqoeg
Check out my follow up video 'How to Make GUIs in Python for Arduino' Here! https://www.youtube.com/watch?v=Z4eUlQnh3sc
Controlling an Arduino from Python could be super useful for a wide variety of applications and using the serial control method we can easily do this in just a few lines of code! All code in both python and the Arduino IDE nee...
So that's not really running Python ON an Arduino, just controlling it with Python.
related ( and very efficient, also work in browser with pygame-web when using esp32/8266 ) https://github.com/MrYsLab/Telemetrix
If anyone wants to detect activities using motion (with accelerometer/IMU) there is now an example for emlearn-micropython.
https://github.com/emlearn/emlearn-micropython/tree/master/examples/har_trees
this look interesting
Hi. Are you working or planning on related projects? 🙂
Yes but if I have an logic bug in my pyboard micropython code, or I have two microcontrollers that try to working / listen on same port (/dev/ttyACM0)
I had an syntax error but the error was showing on ttyACM1
Hey I need help with micropython:
I got this error:
pyboard reveived (from HC-06 module):
b'W\xf5\xfd\xfd\xf3\xfd\xfd\xfd\xfd\xfdW\xf5\xfd\xfd\xfd\xfd\xfd\xfd\xfd\xfd'
Traceback (most recent call last):
File "main.py", line 71, in <module>
IndexError: tuple index out of range
MicroPython v1.23.0 on 2024-06-02; PYBLITEv1.0 with STM32F411RE
The code:
from pyb import UART, LED, delay, Pin
import pyb
import struct
# UART initialisieren
uart = UART(1, 9600)
uart.init(9600, bits=8, parity=None, stop=1)
# USB HID Setup
hid = pyb.USB_HID()
# Variablen
led = LED(4)
# XOR Schlüssel
XOR_KEY = 0xFF - 0x02 # Beispiel-Schlüssel
# XOR-Verschlüsselungsfunktion
def xor_decrypt(data, key):
return bytes([b ^ key for b in data])
# Dictionary mit Key-Zuordnungen (Dezimal zu Hexadezimal und Namen)
key_map = {....14: {'hex': 0x0E, 'name': 'KEY_K'}, ....}
# HID-Sende-Funktion
def send_hid_key(modifier, keycode):
hid.send(struct.pack('BBBBBBBB', modifier, 0x00, keycode, 0x00, 0x00, 0x00, 0x00, 0x00))
delay(50)
hid.send(struct.pack('BBBBBBBB', 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)) # Release Key
# Hauptschleife
while True:
print(uart.any())
delay(50)
if uart.any():
received_data = uart.read()
print(received_data)
delay(50)
if received_data:
decrypted_data = xor_decrypt(received_data, XOR_KEY)
command = struct.unpack('B', decrypted_data)[2] # Entpacke Byte zu Integer
print("Empfangen:", command)
if command in key_map:
led.on()
keycode = key_map[command]['hex']
send_hid_key(0x00, keycode)
led.off()
else:
print("Ungültiger Befehl:", command)
delay(100)
You need to check the line that the error is on. Unfortunately you seem to have edited the code, so we cannot really know on which line that is.
But this line here does not make sense: command = struct.unpack('B', decrypted_data)[2]
You have a single type specifier (which will return one item), but then try to access the second item
oh sorry, yes it was this line and thanks
Whoot! Finally getting the crypto ticker working!
So what I'm looking for is a microcontroller, that can run python, access public wifi and run the lcd, the size of a keychain. This one here runs python and drives the data (a WSS eed) from a the computer and the arduino just displays the data.
Does it use Wi-Fi to get current prices on the crypto market
✌️✌️✌️
✌️✌️✌️
Well, through my laptop for now so currently through a USB cable.
I'm having a problem with my Arduino code (it is fed by my Python script). Is it ok to ask an Arduino question here (It pertains to my python script functioning properly)
Well here it goes. Let me know if not ok and I'll delete it.
// Scroll the price message if it exceeds the screen width
if (priceMessage.length() > lcdWidth) {
unsigned long currentTime = millis();
if (currentTime - lastScrollTime >= scrollInterval) {
lastScrollTime = currentTime;
// Clear the bottom line and display the scrolling portion of the price message
lcd.setCursor(0, 1);
lcd.print(priceMessage.substring(scrollPosition, scrollPosition + lcdWidth));
// Increment the scroll position
scrollPosition++;
if (scrollPosition > priceMessage.length() - lcdWidth) {
scrollPosition = 0; // Reset to the start of the price message
}
}
} else {
// Display the full price message if it fits on the bottom line
lcd.setCursor(0, 1);
lcd.print(priceMessage);
}
}
This is an "if" but I want to change it to just do it.
Can ai run on a raspberry pi?
Yes, this channel frequently spans embedded languages, python, and embedded linux devices. You can check the pinned messages for a lot of info by the way, but you are welcome to ask this kind of question. Arduion c, embedded c, and micro and circuit python are the most common languages that folks here have some familiarity with, as you move away from it into other languages you'll have a smaller chance of finding folks who can help who are also here, but you are welcome to ask. From time to time folks will direct you to other servers that might have more people who are able to help as well
Which if do you want to remove?
Kind of--it depends on how big of a model you want to run. But there are a lot of raspberry pi, machine learning projects out there. It can't handle the biggest ollama model, but it can still do quite a bit. To help much more it would be good to know what you want to run. AI is a very broad term, and usually it's just a term people use for advertisement. If I told you "AI is really just three if statements in a linear approximation of a trench coat", it wouldn't have the same appeal. But that's what "AI" usually is under the hood.
I wanted it to encode and be able to tell me what I'm doing wrong if I'm working on a craft project I'm going to be playing them into some steampunk goggles I want to know what I could use for raspberry pi so I don't have it running on my mean system constantly like I'm system in a box somewhere else and it means in censor data through Bluetooth or even broadcasting it almost like a radio and it would broadcast data back on what needs to get done sorry
That is a very big project.
Breaking it down,
what do you mean by if you're doing a craft project wrong? Is there an example of the craft project?
Well if I want to do something like a casting metal project that requires a very specific thing of heat so I was thinking if I can put some sensors into goggles
So if it isn't a specific task, it's going to be really hard to do it even on the computer.
There are projects that have pose estimation, and provide real time feedback for body posture for workouts, or desk posture, but those are very specific applications. If you can't break it down to the specific craft you're doing, it's going to be very very hard to build it
I'm part of skilled training and I wanted to make some goggles that allowed me to at least know what I'm working with what temperature I'm using when I'm doing something like forging or even braiding telling me how much time has passed and when I should possibly check up on it sorry
Ok if it's that specific, then we can break down the project some
first, what's the hottest the metal gets to?
or the forge?
also are you wearing a mask, like a welders mask while dealing with it?
Something that looks like steampunk goggles
Projects like these: https://hackaday.com/blog/?s=ar+glasses
are a good place to get a sense of diy ar glasses. They're all easy, and the easy ones are not all that great, but you can kind of do some things with it.
I'm going to use https://www.adafruit.com/product/4469 eventually for a stove top sensor project. It has some limitations (the max temp is 300C which is below metal melting points so it's too low for your use case) but the idea is to do a pass of feature identification: https://scikit-learn.org/1.5/modules/feature_extraction.html and https://scikit-image.org/docs/stable/auto_examples/features_detection/index.html then use that to track the temperature of specific objects over time as I move it on the stove.
Other issues are that reflective, metal surfaces will not show their temperature but act like mirror to the camera, so they'll display the temperature of objects near then.
Once you have the object mapped, you can track the temperature over time and see how long it's been heating, at a temperature, or cooling and display timers etc as needed
Would be great for us colorblind people. Have to guess temps sometimes. A friend sold industrial infrared scanners. I'll ask him.
Tonight's ticker progress
I would say first make the AI on your computer which you want
then think about putting it on the pi
its not easy to make a generic AI that can just tell you if you are doing something wrong when making something as the scope is insanely broad
if you want the AI to do a specific task like observe the temprature doesnt go too far or smth then thats possible
but a generic AI that can tell you if you are doing something wrong is very hard
at any rate , dont think about the pi or uptting it in goggles. Firstly make the AI that you want on your PC , then once you do that , you will have good estimate about the resources it will consume then you can decide if a pi; is even suitable candidate for your project or not
Anyon here using VSC to program their Arduino?
Anyone try the new ESP32-S3 + Openai Real time Api integration? The SDK is open sourced, But the ESP32-S3 they used has embedded mic and speakers on the chip itself. Wondering If any of yall know alternatives to adding speakers and mics that are small to a normal ESP32-S3.
yes
no i havent seen it
and
you can add a I2S mic and speaker to ESP32
OK, cool!. I've installed 3 of the extensions and haven't found a way to upload yet. Care to share what extension you use? All the searches say to use the "microsoft" extension, alas, haven't found one yet.
how can i use micropython, when i plug in my esp32 to flash the custom firmware, some weird stuff happens with the ports and it goes under unknown devices in device manager and i dont know how to accesss the port in cmd to flash the firmware
you probably need to install a driver for the uart (usb serial port) used by the esp32 board
if marking is erased on the chip, check the usb vid/pid in device manager system info boxes/tabs and google for them
sidenote some counterfeit chips work way better on linux
I use platformio extension
its basically a whole IDE like arduino IDE ( but better) inside of vscode
cant install or dualboot linux on my main pc with windows 10, parents think ill break it. i did have a scrap laptop which i could do everything experiment on, but my brother broke its screen cables.
you dont need linux
windows works just fine
ok
show us and explain to us what happens when you plug in your ESP32 board
explain this "weird behaviour with ports"
also , which ESP32 do you have ?
i want to see the USB to Serial chip on it
it will either be CH340 or CP2102
and you will need to install drivers for the one you have if you havent done that already
wroom kit thingy, also its too late rn, im not going go and dig for it in my tech bin, its ch340
wroom32
aight , then install the drivers for it
kay
here is a link if you need help with it
after that is done , if the issue still is there , explain to us what happens
ok, probably tommorow because rn its too late for me too get it out of my tech bin
also the sparkfun guide is preety confusing because the board they use is not esp32
does not matter the serial chip is separate from the esp*
what? so i had to buy a seperate chip?
just
install
the
drivers
and maybe reboot
ok
you dont even need to have your board plugged in to install it fwiw
my sleepy brain is really confused rn ill do it tmrw
I have a fastapi application which uses llms to generate streaming responses(chat bot) . It works fine on corp network, but if i use my home network it doesnt give response in streaming manner. Does anyone have an idea about this? Anyone who worked on streaming with fastapi?
Kind of but not really. Rubber duckies and hid type projects are fine, but when it's aimed at someone else it begins to cross the line. You're welcome to ask about hid type projects, we just can't help if some third party is the focus of the project
It's aimed at me
That's kind of not really a rick roll then.
What technology and libraries are you using? Maybe I could point you elsewhere where you'd be able to get more help
Yeah, well I get lonely
Look, you know the rules and so do I
this project in its current form is too close to being disallowed
Aight
https://stackoverflow.com/a/75851218/819417
from fastapi import FastAPI
from fastapi.responses import StreamingResponse
from langchain.llms import OpenAI
llm = OpenAI(
streaming=True,
verbose=True,
temperature=0,
)
app = FastAPI()
def chat_gpt_streamer(query: str):
for resp in llm.stream(query):
yield resp["choices"][0]["text"]
@app.get('/streaming/ask')
async def main(query: str):
return StreamingResponse(chat_gpt_streamer(query), media_type='text/event-stream')
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000, log_level="debug")
this looks pretty
Thanks! I've been sourcing parts to build a small batch of desktop Crypto scrollers. I am currently looking at nano versions but I'm pretty new to arduinos. I've seen small Raspberry Pi's that can run micropython. This is driven by python on a computer pumping the data through the com port. I want it to all run local so they just plug it into a usb hub and it just works after they put their variables in (coin, country) I only have an UNO R3 currently.
Seems like cost being the same, I could run micropython on a $5 arduino or a raspberry pi. Anyone here have a preference?
which arduino and which raspberry pi ?
and what do you need it for ?
board selection depends on the project
the "small raspberry pi that can run micropython" is called rpi pico , and yes they can run micropython
and they are magnitutdes better and faster than arduino uno or nano or mega
It's for a crypto tickr using this for the display:
https://www.temu.com/goods.html?goods_id=601099695076664&sku_id=17592890649079&_x_vst_scene=adg
With the one I've made so far, it gets the data from the com3, that's being sent from my python script running. I want to have python locally so it's only really getting power from the usb
Can I access internet wss feeds through a com3 connection or should I use something wifi enabled?
Still looking, that's why I'm asking!
although, this looks to be what I really want:
https://www.temu.com/ul/kuiper/un9.html
if you want the thing to just draw power from USB , how would it use data communication ?
you are better off using something wifi enabled
(or buy an ethernet shield or module)
look into ESP32
they have all u want
they have wifi , they are powerful, they can work with your display , they have micropython support
I've been looking at the ESP32's as well. Is IoT support the same as WiFi?
IoT is a term basically used for anything that is connected in a network (usually internet)
so yeah , if the thing has some way to connecto to internet , it is also "IoT supported"
How about the ESP8266?
its basically less powerful, single core ESP32 for pretty much the same price
?
<@&831776746206265384>
What that for the 7, 8, 9, 10 before?
yep and the nb nb
I recently got my hands on a Flipper, and installed extreme on it.
I noticed the installer was written in python which I thought was cool.
Now I can PWN the world.
I hope to use it as a robot brain using I2C sometime.
I can't use I2C and wifi at the same time though... Hmm. I'm gonna have to read up on this.
Maybe I make my own custom board for the flipper?
ohh , thats cool @covert summit
underrated comeback
I need an algorithm to denoise accelerometer data that's streamed from my phone
the accelerometer is pretty accurate after phyphox's filter, has a
- noise of about ±0.02m/s²
- frequency of 250+hz
- latency of about 1 to 5ms
the data is used to control the cursor, the issue is that small deviations already cause huge amounts of drift over time, does anyone have experiences with this?
I can provide my code, it has a few draft functions that all have either one of these issues:
- cursor moves back after you stop
- cursor is shaky
- velocity is messed up when acceleration is relatively constant
the main limitation is that the algorithms have to be able to polish the data in real time
u might need some form of controller similar to a pid
Accelerometers always have drift unless you do straight up cutoff starting at the minimum noise level you get when still (sounds like 0.02m/s2).
Higher end systems sometimes have two accelerometers, a high-g accelerometer for shock filtering and a normal one. This way you can apply specialised filters to get high quality position tracking.
yep, that's what i was trying to do, but there's one more issue. more rapid movements lose a high amount of measured acceleration in the gaps between each data point. to experience that you don't even have to move really fast, normal "mouse movement" is more than enough
I just a watch better call saul recently and I find it intriguing
Great show @bronze mural
Incredible show
Does anyone know of a lightweight web panel for raspberry pi? Preferably similar asphetics to ptero panel, but that's not a crucial
do you use this code in node mcu?
some interesting ideas to do with microcontrollers?
maybe hooking them to a web page or a native python with https://github.com/MrYsLab/telemetrix ? i've found that really usefull for memory starved mcu
A user-extensible replacement for StandardFirmata. All without the complexity of Firmata! - MrYsLab/telemetrix
that's interesting
Hello everyone this is my first message.
I need some help on a project of mine I'am trying to get a 64x128 pixels led matrix to work with python. I'am using the hzeller library. but when i want to run code in the in the virtual enviroment the library tells me to run it in root(raspberry pi3), then i try sudo and all the packages that i have installed wont work obviously because i'am running it on root.
How do make you make your microcontroller (raspberry pi pico w) act as a HID but be undetected to things like anticheats or other software? Not for anything nefarious.
I don't think you can do any kernal stuff
Unless your doing something weird already
I am illiterate on this so take what I ask with a grain of salt: Is it possible that you could make it act as a proxy, plug an actual keyboard into the PI, plug the pi into your computer, proxy USB data or something and when you send your own, send it with the details the normal keyboard would send?
idk dude
im probably going to make the pico act as a usb sheild hub
what does the pi do? you're still gonna need a helper utility to read/write mem, etc. aren't you?
lol and when you find out how to do that lmk for equally unnefarious reasons
also would this double as a mechatronics server or should i just look for another discord
hey guys, if i want to get into embedded systems, specifically object detection with drones, what should i have learnt before?
yolo is good for object detection
goodday, so I have this "project set: Fysetc Voron Rok Hot Key Pcb Botton Mod" and I want to make it "simple" numpad sized keyboard.
after I opend the "boots"
UF2 Bootloader v3.0
Model: Raspberry Pi RP2
Board-ID: RPI-RP2
so far no code worked (basic first time codes)
also ask chat gp (looked like something i needed, but not worked)
and i have no idea where to start
so i found some yt with circuit manger + kmk
after using "circuit manger" uf2 thing
i tryed to get KMK on my board
kmk = 2 mb my board 999kb/Kb
so is there a smaller version ? or more direct coding
Hello everyone, need guide about connecting python server hosted anywhere with the microcontroller esp8266 to post and get data.
I have Flask sever, created end point to get data locally on 5000. And Connected successfully server running on localhost 5000 port with esp8266. But i want to live my Flask server using ngrok and but after exposing port on ngrok i am not able to connect with microcontroller.
Can anyone guide me how i can get this done, i searched on google but not able to get done
Thank you
How do I use python in microcontrollers such as arduino and esp32
micropython can run in esp32, arduinos usually don't have enough ram to run python BUT you can use telemetrix with them https://github.com/MrYsLab/Telemetrix4Arduino/ and code with cpython
Anyone ever used micropython for micro:bit? Specially the radio module.
who said , radio @next shoal
is that the whole question ?
or are you going to ask a follow up question when someone says "yes" ?
why are you still using Temu in 2025 💀
We're all ears to your superior shopping place!
amazon
wouldnt recommend amazon for electronics parts. They are overpriced.
Check local reputed electronics sites first.
if not , use mouser, digikey , etc
and lastly , there is always aliexpress. although if its "superior" or not , is a different question.
Well, I live deep in the woods so there are no "local" anything. I've even had the bad idea of opening an electronics shop because of the scarcity in my region. I can get esp32s and 8266nodemcus for less then a couple of bucks each off of either Amazon or temu and both will quickly credit me if there are any issues with the product and both only take 3 days or so on orders. I'll check out mouser and Digi key, but I highly doubt smaller sites are going to give free shipping and I've had return problems with smaller sites too. Often, when something is bad, there is no return required where most smaller sites still require a return where I would have to cover shipping.. I'm all ears to new sites but your bashing is off mark and unfounded.
mouser , digikey are pretty much gold standard for hobbyists and sometimes industry part needs.
they are reliable and you can trust them . not to mention they have sites where you can search amongst millions of components according to your specs.
they mostly dont have free shipping , but if you need guranteed good parts ,they are the way to go.
also where r u from if u dont mind sharing ?
Deep woods Kentucky so shipping is always an arm and 1/2 a leg. I haven't gotten a single bad part from Amazon or Temu and they also have millions of components. I haven't NOT been able to find any specific part on Amazon for cheap yet. I'f you look back to the thread you had to comment on, the user was looking for cheap parts, I provided a link to said parts and you clearly have a hangup about those sources.
Also, you advice should have been for the user I was talking too as they also don't have anything local so the source, was really, for them.
IT's SaulGoodMan though... I appreciate you trying to help me get better prices though. Sorry if I come off harsh...
I just prefer a company that doesnt take your data and gives it to china and that might have cheap stuff but that doesnt mean it is good
If china was interested in me, at least someone would be interested in me. I got nothing to hide from anyone. If you think those other sites aren't selling your info, you're still wrong because you used a card to make the purchase and THEY ARE selling your info too.. Paranoia will destroy'ya...
And as I noted, I haven't gotten a single doa piece of hardware and all have worked as advertised.
also aliexpress AI is very efficient at sourcing your wishlist for you giving more choices or bundle deals that way, it saves hours of manual searching
I would use them on larger orders if anything takes off for me. I seldom need more then 5 of anything and I can get 15 MCU's for $13 on amazon if needed...
No shipping..
easy returns (as in, they don't want it back)
I know they sell data but company's like PDD Holdings are based in China so ALL of the data has to be given to the Chinese goverment and Pinduoduo OWEND BY PDD HOLDINGS had to be taken of the play store becuase of it containing Malware so I prefer not to get hacked by temu
I'll digress from the political statement about our current president and the chinese spy staying with all the top secret docks at marlargo....
I get it, you don't trust them. Thanks for the heads up and the other options. I'm comfortable buying where I currently buy.
And if someone wants to know where to get stuff, I'll probably still refer them to amazon and temu.
Now if you know where to get a Jetson Orin Nano for $30 I'm all in... Probably from china though...
no but it can support pysdl2 ( some assembly required )
best choice to use with micropython is probably lvgl.io
lvgl also support cpython so it is not time wasted
Ok lets just agree to disagree
i had no idea what the previous conversation was as it was quiet a while ago
i saw your message wanting better shopping places than temu right here #microcontrollers message so thats what i replied to
there is no need to state it explicitly that temu is not a site you can blindly trust on. We all know what temu is.
so is aliexpress for that matter. But most of the times , aliexpress delievers what they say. (maybe so does temu , i havent used it )
so i presented few reliable options that can be trusted like mouser and digikey. If you are in the US , maybe they charge like 5-7 USD for the basic shipping option. And whenever people buy , they usually buy a lot of stuff at once. So i usually order lots of components in one order. so the shipping cost is like a one time cost to get lot of components and its mostly ok.
and as for amazon..... well lets just say the sellers think they can buy from source for cheap and sell on amazon for inflated prices. Except for few parts and kits , i would say amazon almost always has slightly higher prices. in some cases (like rapsberry pi boards , the prices are sometimes inflated by like 100 % and are almost always out of stock, check images for example)
For "common stuff" like boost converters and allat , sure amazon is usually fine (although i would still double check all other places to make sure you are not overpaying). As soon as you start to get into niche stuff. like wanting just the ICs or a component with specific value, or bunch of specific SMD components , components that are per your specs etc , amazon falls short.
One thing amazon indeed does great is returns. But the need for returns is if you get bad parts in first place. With these sites , the chances of that happening are very very rare.
it all boils down to -> if i need some parts that are not "critical" ,i firstly check my local site, if they have it and its not overpriced, i just use that, if not , i order them from aliexpress , if i need parts that im using for long term like raspberry pis or other debuggers etc, i order from a good site.
and as for the political aspect , i personally couldnt care less
they already have our data anyways ,like , i just need my parts , i dont really care what "intel " they get on me from that
@elfin sphinx I'm currently only buying small quantities. When I buy 5 - 8266s for $6 I can't be spending 5 more on shipping.
Guys uhh
Is esp32 cool
I need to choose between an arduino and esp, not sure which one doe. Heard esp32 leaks charge a lot
what are you trying to make
Hello
esp any day
Cool?
4
9
when I think of a ESP32 I think of a micro controller that can be connected to other ESP32s for a massive high tech home
I need a microcontroller which has both serial and wifi, support https, and smaller then your standard esp32
ESP8266: This is a smaller and more cost-effective alternative to the ESP32. It has built-in Wi-Fi and supports HTTPS. However, it has fewer GPIO pins and lacks Bluetooth capabilities.
Raspberry Pi Pico W: This microcontroller is compact and comes with built-in Wi-Fi. It supports HTTPS and has a good number of GPIO pins. It's a great choice for projects that require a small form factor.
Arduino Nano 33 IoT: This microcontroller is smaller than the ESP32 and comes with built-in Wi-Fi and Bluetooth. It supports HTTPS and has a range of GPIO pins for various applications
ty copilot
sounds like a "WeMos D1 mini" (esp8266) description
That looks absolutely perfect
$0.99, free shipping, and even usbc as an added bonus tysm
take a bag they often sale by 5 or 10 , for even cheaper
yeah getting a 5 pack for $4.83
and sometimes you can get lucky and have counterfeit FTDI on them so they can work with ... python in the browser ( pygbag or pyodide )
otherwise just use Telemetrix for esp8266 directly via usb or wifi
Literally all I need to do with it is sniff data from a processor's serial, forward it to a webserver, and then write data into another serial line
Had it working on a standard esp32 just was too big sadly
yeah D1 mini is a perfect match for that
ty again
yw
Hello all! I'm extremely new to all this, but im wanting to go into robotics and prosthetics and was told that everyone here might be able to help with getting started. Main goals at the moment are to start a few beginner friendly projects and learn how to code while doing them. Any advice would be great.
is there a big difference between coding in CircuitPython and MicroPython ?
Syntax is same like python but the libraries and all used are different , so yes ?
im asking because i can't find ESP32-S2 specifically for CircuitPython (The board my group got is custom made by sponsor and uses ESP32-S2 and now i dont know which download to use). i mean i can find some boards but not the generic one
for context my school picked me into a group for minisumo contest where they give you the board and nothing else
this is how the board looks and i have a presentation file labelling all the connections but it's in Polish
this are the specs provided
it says 2022 but that's because it's the year the board got introduced in
before it was based on STM32F103RBT6
start identifying all the components on the board - collect PDFs @wet spoke
the chips outputs / inputs will lead to the pins , the components will tell voltage and amp maximums , usually the intended purpose also like - motor controller or whatever - Its a detective story ... need them clues @wet spoke
Look for a ultra simple version of a ESP32 board , at least will show the basic parts to make a interface to talk to it @wet spoke
I am part of FTC and we use REV parts and I forgot what type of motor but it really depends on your use case I am not quite sure if REV makes smaller Hubs
How hard would it be to make a hid device without ic's or microcontrollers
Probably pretty hard
hii
Hello has anyone ever made there own microscope controller?
Has anyone made there own microcontrollers
Functionally speaking, you can make something that works and behaves the same as a microcontroller : a processor with peripherals. You can pick an FPGA, load a RISC-V processor into it, hook up a few peripherals of your own, such as a DAC, an ADC, memory, etc. Then you would be able to program the RISC-V core and use it as a controller for the peripherals. Making it a microcontroller is much more complex, as it would require a silicon fab, which is difficult, expensive and time consuming
I am trying to make a object tracking robot using raspberry pi, python, and servos. But idk why this is having an existential crisis
here is the code ☝️
Sensors I mean.
As in if anyone has made their own sensors?
Yes
Of course. That's how sensors exist. Otherwise, I'm not sure I fully understand the meaning of your question
Dose anyone know how to make a homemade sensor
Yes. What are you trying to measure?
For example, measuring water level : make a pcb with various conductors to measure which ones are shorted
Spectral data for samples
That's not a sensor. That's an FFT
Samples -> FFT -> spectrum
FFT
Ok so what about a light and water sensor?
Light sensor : photodiode or photoresistor. You could make one at home if you had access to about 500$ worth of silicon doping and toasting equipment.
Water sensor : wires.
For the water sensor is there any confirmation I should use?
What do you mean by confirmation?
Configuration of wires
Thanks
As in a microscope remote?
does anyone know where i can find BrickPi documentation (it's a raspberry pi). I want to see the library with all the different types of methods to use
i can't find any docs on the internet
thanks
hey guys, what's the best way to get started with embedded systems?
There is no best way, but there are good starting points. Depending on what interests you in embedded, you could go for an arduino. If IoT is more your thing, RaspberryPi is good
It's a broad field
you could start there https://wokwi.com for microcontrollers or try to boot qemu then a real old PC motherboard ( bios not efi ) with your own bootloader
my main interest in embedded systems is drones, which in itself i'm guessing is very comprehensive, outside of that i don't really see myself doing much else in the field
Both Arduino and ESP32 are decent starting options. You can specialise in various other devices if and when the need surfaces
do you guys recommend learning C for embedded systems
I got myself some ESP32. I wonder if I can turn them into like a wifi/bluetooth dongle for computers? Also what are some projects yall did with ESP32s?
and those from family https://en.wikipedia.org/wiki/Synchronous_programming_language
A synchronous programming language is a computer programming language optimized for programming reactive systems.
Computer systems can be sorted in three main classes:
Transformational systems take some inputs, process them, deliver their outputs, and terminate their execution. A typical example is a compiler.
Interactive systems interact conti...
Yes. i use it all the time
You can but its slow, i would not recommend it
slow as a WIFI , BT modem ? @dreamy wasp
for me both
can it do better than 250 Kbaud ? as a modem link for other type MCU ( microcontroller ) @dreamy wasp
i doo not know tbh
oh wite it dosent allow it to be a modum its self (to my naliage)
I use propeller 1 chip , no WIFI / BT , but has 250 Kbaud FULL-DUPLEX serial , now Im considering a RP3B+ as a serial link @dreamy wasp
all python based
I dont know about python WIFI / BT but C/C++ works good
Looking to experiment with the full functionality of a now 'old' RP3B+ , GPIO blinky lights boring .. however making it a secure ETHER , WIFI , BT data link is interesting ---> to a MCU or array of MCUs @dreamy wasp
valid, i just use my esp32 for automation or hacking legal
IM using Python for now , C / C++ is down the road ( speedy graphics )
valid
Oh, that's interesting. I guess the slowness is not worth it then LOL. What kinda projects you did with your ESP 32? I only made like a detector thingy where two ESP32s are linked, one makes a wifi and becomes a webserver, the other connects to the wifi and goes to the webpage. So when they are close, they connect and the Blue LED turns on so I know that they are both close to each other. When they are far the Blue LED turns off since they can't connect to each other.
bro must've had too much to drink
is there a way i can use both micro-python and idf-esp on the esp32?
hi
yo guys after learning basic c do you think i should start with embedded systems or should i first do some practice with pointers and such before getting started with it
just spent all of today learning c (have never learned any c before today but i know java and the syntax is pretty similar and so not very hard to get used to)
only thing new to me is pointers and structs, but those don't seem too bad
perhaps should i work with implementing data structures and algorithms in c
Can't hurt to just jump into embedded systems stuff, you'll make mistakes but that's fine, you'll learn as you go
i want to work with drones, but i have never worked with embedded systems before so should i start with something simpler like arduino
Yes. Arduino is fine
is this the one i should get https://www.amazon.com/Arduino-UNO-Minima-ABX00080-Connector/dp/B0C78K4CD4?source=ps-sl-shoppingads-lpcontext&ref_=fplfs&psc=1&smid=AA57DDZKZUZDL&gQT=2
Enhanced and enhanced, the Arduino UNO R4 Minima is equipped with a powerful 32-bit microcontroller courtesy of Renesas. Prepare for greater processing power, expanded memory, and a whole new level of integrated peripherals. The best part? Compatibility with existing shields and accessories remai...
i can't really tell if it comes with the wire or not
should i get arduino r4 minima or wifi
Either one is fine. Flip a coin
Better even, take the cheapest
minima it is then
are there any other utilities or cables that i need to buy or do they usually all come with the arduino
A spool of single core 22 or 24 AWG, cutters, skinners, pliers
showed at the bottom of the arduino product page as frequently bought together
Not what I'm recommending
Perfect for bread-boarding, free wiring, etc. This spool of solid-core wire is easy to solder to. When bent it keeps its shape pretty well. We like to have a few spools of this stuff around. We suggest picking up wire strippers to match. Wire gauge is 22 AWG which we've found is the best all-arou...
also what's a skinner
i don't know anything lol
when i search it up i either see socks or a knife
and for cutters and pliers does the size matter
WGGE Cuts, strips wire and loops 10-22 AWG Solid copper wire. Strong-gripping serrated nose for easy bending, shaping and pulling of wire. Cutting action combined with ergonomically curved handle. Bolt cutter cuts bolts to size and leaves the perfect lead thread. Unlike conventional wire stripper...
Sorry. Wire stripper. I translated from French and it did not work
do i need each and every one of these?
these are all for cutting wires right
One is for cutting, the other is for stripping, the other is for bedding. Try to do all three with the stripper and you will break it within 4 weeks
i see
I was wondering what software should I use to program my arduino in python?
you can flash arduino boards with python, but can't program them they just don't have enough memory. But there's is a way to "drive" them from python https://github.com/MrYsLab/Telemetrix4Arduino/
hmmmm, at that point do you think it might be more benficial to just learn c++?
no idea i use C even with arduino tools which are c++
Ok, thanks!
Nim-lang seems also a very decent alternative to C/C++
it is way closer to python
i know people do program arduino with it but did not try myself yet.
yo guys i'm getting an arduino board, does this type of wire work
https://www.amazon.com/Adafruit-Solid-Core-Wire-Spool-ADA290/dp/B00KAE3NTQ
Perfect for bread-boarding, free wiring, etc. This spool of solid-core wire is easy to solder to. When bent it keeps its shape pretty well. We like to have a few spools of this stuff around. We suggest picking up wire strippers to match. Wire gauge is 22 AWG which we've found is the best all-arou...
knowing C/C++ to some extent will always be a plus point when doing hardware
I bought a sim800c with usb but im unable to establish a connection, the only response im getting is those weird characters at connection
yo do you think thi is fine as both a wire cutter and stripper
based on the video on the product page, it looks like it can do both
also what is bedding
tldr : Stripper and cutters should be separate. Buy a mix of them at your own risk
if there's a decent amount of distance between the cutting and stripping parts it should be fine as long as i'm careful right
I don't think you (or anyone, for that matter) being careful is statistically significant. Anyway, I have spoken on this matter
kk i'll look for a seperate cutter then
cause for this one most of the blades are the stripping part, only a small part is for cutting
Doesn't matter. The sheering force will pull them apart, ruining the stripping