#microcontrollers
1 messages · Page 26 of 1
Then on the device you'd store a list of card ids that are allowed entry, and then actuate some locking mechanism if access is granted
Gotcha, thank you. Those were the terms i was forgetting "RFID" and "NFC".
Of course it gets much more complicated if you want to protect against malicious actors
is there any specific microcontroller that I should be using? or would a rasberry pi work?
Secure access systems is quite a large business haha
I'm not too familiar with the hardware involved that side of things unfortunately
Ahh that's fine. I'll get to researching now that I know what to look for. Thanks again
i was looking at the ESP8266
and hooking it up with a motion sensor
putting them together on a breadboard
im just confused on where to start
Server
is it possible to use pyfirmata to send mouse movements through my arduino leonardo? Like a mouse.move() equivalent in python.
literally my question
are we in the same class...
oh i am making a drone
damn
I have a solution that may work for you
what works for my situation should just be writing bytes to the serial, and then take that and make a mouse movement
using pyserial you can just write to the serial and the arduino code you've uploaded to it will run it
so long as its taking user input
brilliant
whats the latency from - control jiggle to drone wiggle
Does anybody know a serial port monitor for Windows that is "non-blocking"? Like it disconnects/reconnects by itself when I try to program the controller.
hi, so i am wondering as to why my raspberry pi will never go past the boot looping issue, i can never seem to get it too do anything. it shows an underscore, sometimes the colour panel, sometimes the boot up image with the "press shift to open menu" but as soon as it does it powers off, and never gets anywhere
the only way i have managed to open the shift menu, is when using a formatter on my phone. all the formatters from the computer seem to fail
ahhhhhhhhhhhhhhhhhhhhhh
my pico broke
Lmaoo i rmbr trying to set up unix on my raspi
It was so slow
i couldnt even log in
Emulate a mouse
How
That’s what I’m trying to do, I just don’t know how
There has to be a api documentation somewhere
Pyfirmata has almost no documentation
Wew uhhhhhhhh.........
Yeah it’s quite annoying, now I’m just making my own arduino code that just takes serial input for mouse movements and clicks
Oh Arduino, so you can try making a hid device that the computer can understand
PEA did a video on this lately: https://youtu.be/lkvJsrufmjE. To read a mouse you need a USB host shield for your arduino.
Want to learn more? Check out our courses!
https://bit.ly/3CL6I3v
Get the code, transcript, challenges, etc for this lesson on our website
https://bit.ly/2Z50iyi
Get your Free Trial of Altium PCB design Software
https://www.altium.com/yt/programmingelectronicsacademy
We designed this circuit board for beginners!
Kit-On-A-Shield: h...
Hello!
I've been trying to figure out which is the port my microbit is connected to
been having a hard time with it though.
just a standard temperature code to send to the serial port
😩 but now i cant reference it in my code cus idk which port its connected to
ok so are you using a data usb cable rather than just a normal usb charger? and if you are sure the cable is ok go into device manager and see what's there
ill get a pic
in the ports section there should be COM1 (as shown) but also maybe COM4 it tends to be for some odd reason
it was com4
for some reason no data was getting there though
trying to read it would just yield the loop
why do you need that redirect thing
baud rate needs to be the same on sending and listening software
I'm writing a program for my raspberry pi (running headless). I want to write my code in visual studio code with intelli sense... i think its that, so is there any way i can "use" the RPi library in visual studio code or generaly windows. I dont want to execute the code on my pc but i want to upload the code to my Pi and run it there
hey do you know any project with, esp32 micropython and websockets?
Honestly, not really
I usually don't come up with projects to do with specific hardware, more often I come up with ideas I want to create, then try to fit what I have to achieve that goal.
Oh got it, i just started my studies so theres a long way to go 
I use uwebsockets to control OBS (with the OSB Websockets plugin) from an ESP32 Feather with micropython
uwebsockets is there: https://github.com/danni/uwebsockets
Oh, I gonna take a look, thank you!
Not sure if this is the right channel to ask - I was looking to do a raspberry pi gardening project and was wondering if a 2GB Pi4 is good enough, or if I would need the 4GB version
Depends on the project, can you elaborate on it a bit. It probably would be.
Haven’t properly planned it out yet but effectively just automated watering, ph, nutrients sort of thing
You could probably use a Pi Zero 2
Is there any good way to determine how much computing power Id need? Or is it really just trial and error
You should go with the highest in your buget
What would you be computing?
Pretty new to python so I was thinking of this as a fun project to play around and learn some stuff. Any recommendations welcome 🙂
I just assumed I’d need to compute levels of water or nutrient required based on readings from soil and then command a pump to deliver it
Now that I’m saying this it does sound like I could get away with a zero, there isn’t much calculation involved, mainly some basic code with commands
You won't need much computation power, it could be done on a microcontroller. The Pi zero 2 is $15, The Pi 4s start at $35 I think.
The pi zero is good for embedded applications as it is a third of the size.
I might get both then, pi4 could always be used for other projects
Is this worth the money?
All of parts cost about that much. I would go with a 4G if you can get one.
Out of stock everywhere at the minute, no info on when they’ll be back as far as I can tell
Right now Pi's are going to hard to find. And they'll continue to be hard to find for a while. Get any pi you can if you want and are able. For a simple gardening automation setup a pi will be overkill, so any pi will work fine. If you ever use the pi for another project you probably will notice the 2gb ram pi isn't that powerful, but it's a pi, power isn't what you use it for.
Could anybody recommend a micro controller for an automotive project. It would be receiving data from an OBD2 preferably via Bluetooth and inputting it to a screen (basic screen, no touchscreen). I was thinking a lower end Pi, but I am uneducated and not sure what else there is to offer. If anybody has any suggestions or questions lemme know. I’ve currently got a couple old Pi’s but not sure if they’d suffice as they’re low RAM 512/1024 I believe.
hey, has anyone here ever worked with a biometric fingerprint device and converting the image to iso 19794-2? ive literally searched everywhere and cant find any information on converting an image to the iso format
:incoming_envelope: :ok_hand: applied mute to @lusty herald until <t:1646894481:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
:incoming_envelope: :ok_hand: applied mute to @ancient stump until <t:1646910354:f> (9 minutes and 59 seconds) (reason: duplicates rule: sent 4 duplicated messages in 10s).
Know someone a good microcontroller suitcase for beginners and that I can buy online
arduino vs raspberry pi to learn linux....
Arduino can't run an operational system, so Raspberry
Although you cold learn with a Virtual Machine
i dont know about virtual machines - im staying inside PY3 ( python 3 ) world , i would like to run virtual , microcontroller chips , is it possible
I believe the mention of using a virtual machine was to suggest using a virtual machine to learn linux.
For microcontrollers, there are some emulators, which is technically different than an virtual machine than for an embedded device but I think is in the spirit of what you're looking for.
This is one that pops up pretty quickly on a google search, I know there are others as well I just don't know specifically what they are
https://wokwi.com/
what do you mean by suitcase?
can micro python fit / work on a ESP8266 ?
I have never used one, but it looks like it: https://docs.micropython.org/en/latest/esp8266/tutorial/intro.html
1 meg flash , 512kb mem minimum
theres some old esp8266 kicking around here there
lots of you use C , on microcontrollers ( esp ) , but i just want to use PY3 , im guessing there is a PY3 and C speed difference ??
Technically micrpython isn't py3--it's a version of the python standards that is very close to py3. The way it processes code does make it slower than straight c or assembly on a micro, but it's pretty similar to python which makes development faster if you're familiar with a python workflow
unless you're trying to do lots of things very quickly, you won't need to worry about it
mmmm - just GPIO interfacing
then you should be good, the docs describe what it can do
very cool
(I know not a good pic) Kinda that, so microcontroller with a few lamps, a big display, and maybe a few ports for non-emulate-testing and for assembly
Oh you mean an actual, physical suitcase, not just a kit with common electronics parts
Why are you looking for a suitcase? And why do you need electronics for it?
It can be something different than a suitcase
I'm actually learning assembly in school and we also try to run the code on physical microcontrollers
oh ok, do you know the kind of microcontroller they use in that setup? (I'm going to guess your teach just uses the suitcase as a way to keep everything together and organized as a teaching tool, rather than the suitcase being exactly what you need)
I don't have much experience when it comes to assembly, but I'm going to guess any arduino uno kit will give you plenty of options to work with
something like this is nice, albeit a bit overkill: https://store-usa.arduino.cc/products/arduino-starter-kit-multi-language
Really anything with an arduino uno or a clone, leds, maybe a buzzer or servo, that should give you a ton to play with and there's lots of assembly on the UNO tutorials out there:
https://forum.arduino.cc/t/programming-arduino-in-assembly-language/37227
https://create.arduino.cc/projecthub/Hack-star-Arduino/arduino-simulator-arduino-in-assembly-language-2022-9182f0
https://gist.github.com/mhitza/8a4608f4dfdec20d3879
actual we using the atmel t89S52
Looks good
im using a raspberry pi to host a webserver, and i want to be able to detect when someone presses a button element, or inputs something into a field, and python can pick that up and do something. how might i go about doing something like this? (let me know if you need more information.)
It totally depends on what framework or library you are using
Got my pi4, having an issue where I can’t insert the micro SD into the pi while it’s in the case due to the angle, any ideas?
Um different case? Or use USB boot with an SSD and enjoy 10x better perf and reliability
It’s the official case unfortunately, just jammed it in and it worked
Hi everyone, I need to send data between Arduino and Raspberry pi using SPI communication how do I do that ?
Hi, I'd like to use the adafruit thermal camera mlx90640 to read values and for my raspberry pi to light up an LED if any values are greater than the specified value.
What are some ideas on implementing an LED into my circuit? It's set up with the thermal camera and adafruit's base code, but I can't import gpio due to that.
Use GPIO.getmode() to double check what the mode is set to, where 10 is Board and 11 is BCM
mode = GPIO.getmode()
if (mode == 10): # GPIO.BOARD
led_pin = ...
elif (mode == 11): # GPIO.BCM
led_pin = ...
else:
GPIO.setmode(GPIO.BOARD)
led_pin = ...
is it good to use asyncio for camera?
gonna use it for raspberry pi
and will be running 24/7
Hi all, i want to create/modify a drone for monitoring water pollution, ill be using a camera to take pictures of water to check for infected areas. Any ideas on how i can expand or add more features/functionalities to the system. feedback would be much appreciated.
have any of y'all worked in multisim
yeah, as part of a college course
it was basic stuff
Any one has good ressources on running a firmware update server for Over The Air updates with an ESP32 board?
could look at how some popular IOT frameworks do it like tasmota / esphome / espurna
I am doing project based on openCV and GUI can anyone help
Hii
I am new in iOT
Can someone suggest me how to subscribe server attributes in arduino software. esp8266
any boady in vr career
I don't have a ton of experience with those, but maybe someone else here does. What is your question, and what have you tried?
is there a OS version for a RP3B+ that has a pre-compiled OpenCV ?
As in an os image that has open cv preinstalled? Is there a reason you can't just install an os and then install an opencv wheel?
last time i looked - it takes hours ???
im very out of date
im using ubuntu - is there a advantage to use raspian if i want to monkey with GPIO interfacing
using python 3
Not sure, Maybe it does? I haven't installed in a a while. is there a reason you aren't able to just try installing it? It might end up being faster than finding a solution elsewhere
well - i always consider asking here , because you can save me 6 months
of - general nonsense , mish mash , self-delusion .... izz itzz ok dokey
I get that, but the answer changes depending on what is motivating the question. If you are running a company and are trying to deploy 40 pi's a week, that install time adds up fast, in which case I'd suggest installing it once and then cloning the sd card image to other sd cards.
if you're only doing one, it's possible to find an image with the open cv on it, but if it's through a third party, there's a risk of security vulnerabilities. In some cases it's worth it, in other cases (generally I'd say) it's easier to use an image and install a wheel (since the wheel is precompiled, and most of your wait time of wheel installations is downloading the wheel and getting that system paths setup, instead of downloading, plus compile time, plus paths.
You also have to factor in how long it'll take to find such an image. It's really easy for that time to add up to being longer than just installing a wheel.
That's mostly why I was curious, I didn't want to steer you down a path that took longer than just installing a wheel if that wasn't necessary
i see the logic in your explanation , i can borrow a wheel , not re-invent it ....... ha
Hello, does anyone know CharLCD for raspberry pi 4?
Aren't lower level languages better to program microcontrollers because they are faster for the processor?
yes - native ASM always the fastest
this isn't true - it depends whether you know how to optimise code better than the compiler. For 90% of people and problems you'll write better code using C or something
Hey sir, I am not able to send you message
I need some quick advice
I have a bluetooth shutter and programmed it that whenever I click the shutter button, it connects to my RPI and "intercepts / reads" the input and does something with that (irrelevant to the question)
main problem is: the BT shutter goes in "sleep mode" after 5 mins to save battery, so when I click the shutter after a while, it first has to reconnect to my raspberry PI before being able to read it's input / intercept stuff. The "connection" can take up to 4 secs and I actually want it to happen instantly
the question:
is there someone who has experience with BT traffic, so I just want to intercept the bluetooth signals instead of reading out the "shutter signal keypress" whenever it's clicked, I feel like that'll be way faster and I don't feel like it needs to even be connected to react instantly
it might help to know the brand of BT shutter and what you're using to connect to it
it's an offbrand AliExpress one, here's a pic
literally one button, it's just a "cheap switch" in my use case
All I'm currently doing is checking the /dev/input directory on my RPI => when a new input device is registered, I run the task
and as long as the device is connected, I can just "read / intercept" the input, that runs smoothly and instantly, it's like a keyboard
the first click which takes the device out of sleepmode is my main problem
have you looked at using a library like https://python-evdev.readthedocs.io/en/latest/index.html
I imagine there would be some sort of wakeup event you could monitor for?
That’s exactly the one I’m using to read the input once the BT shutter is connected, but the “monitoring of when a new input device is registered” takes a litte too long
I’m using this BT shutter as a wireless light switch, and having a delay of 3 secs just sucks. Also, I’m almost never touching my lightswitch when it’s connected ( within the timeframe of 5 mins, it stays connected ), so I just need another method of checking when the device is communicating with my RPI and I feel like intercepting the BT signal would be the fastest option
There's a list of python BT libraries here, not sure which are still maintained: https://github.com/ukBaz/python-bluezero/wiki
With Pybluez you could try connecting over RFCOMM for monitoring
https://github.com/pybluez/pybluez/blob/master/examples/simple/rfcomm-client.py
https://people.csail.mit.edu/albert/bluez-intro/x232.html
Never done that, I’ve found the Bluetooth libs, sure, but how to use them and what RFCOMM stands for is yet to discover :/
Does anyone know the answer to this?
I designed an IoT (Internet of things) device—which I named HAC 1.0—that will be sold as a consumer electronic product. To improve the product’s reliability, I imagined placing almost identical circuits on the front and back of a single PCB (printed circuit board) which could failover. Each circuit will be controlled by an ESP32 running MicroPython. An ESP32 is a microcontroller just as an Arduino is a microcontroller. MicroPython is a subset of Python.
However, I realized that the solution described above is too simple. I realized that a more sophisticated solution would very significantly improve the product’s reliability, yet only increase the product’s production cost a little (not more than 20%).
HERE IS THE QUESTION YOU NEED TO ANSWER TO PASS THIS TEST
Do you see a more sophisticated solution would very significantly improve the product’s reliability, yet only increase the product’s production cost 20% or less?
FAILOVER EXPLAINED
Are you confused by the term “failover”? Failover is an essential aspect of many redundant systems. For example, individual servers in Google, Facebook, and Amazon data centers regularly fail, yet very few users are ever affected by these failures because of failover.
The two circuits (on the front and back of one PCB) would not be identical because one of the circuits would contain a very inexpensive yet extremely reliable microcontroller which would be able to failover from the circuit on the front of the PCB to the circuit on the back of the PCB (or vice-versa).
For the product I have designed (HAC 1.0), let’s imagine that the ESP32 in the circuit on the frontside of the PCB had a hardware failure. In that case the very inexpensive yet extremely reliable microcontroller would be able to power off the circuit on the frontside of the PCB and power on the circuit on the backside of the PCB.
MY ANSWER CONTAINS MERELY 11 WORDS
I only used eleven words to answer the test question. One of the 11 words I used is “ESP32.” None of the other ten words I used are technical terms such as MOSFET or XNOR gate. Instead, all of the remaining ten words I used are plain (ordinary) English. You must neither use the word MOSFET, nor XNOR gate, nor transistor, nor resistor, nor capacitor in your answer. Except for the word “ESP32” your answer must only contain plain (ordinary) English words.
YOUR ANSWER MUST ONLY CONTAIN WORDS
Please submit an answer to me that only contains words to me. In other words, please do not submit an answer containing any images to me. Also, please do not submit an answer containing any links to me.
HOW SHOULD YOU SEND ME YOUR ANSWER?
Please send your answer to me using Fiverr.com’s chat application as an ordinary text message. In other words, please do not send me your answer as an attachment.
COPIOUS ADDITIONAL INFORMATION
I have created a sixteen page Google Doc which contains detailed information about HAC 1.0 (the IoT product indicated above) as well as copious information that could be used to help solve this test. If you would like a link to that document please copy, paste, and message me the following, “Please send me the link to the Google Doc named, ‘For Fiverr –– a test apparently about microelectronics which is essentially a logic test and copious related information’.”
If you are having trouble with your assignments, I suggest you show what you've done rather than request someone do your work for you via fiverr.
No it’s not me I got offered a job and this is what I gotta do to pass it I’m not even doing electronics in computer science
He was really vague about it and I’m still not even sure what job he even wants me to do if I were to answer correctly, this is a copy paste of what he sent me
going to be honest, this is a really weird 'application' assignment. It has a weird balance of expectation of technical knowledge, and explaining very basic concepts. I'm also not sure what they're looking for either
Have you done any work so far that would help show what you've done and explain more context?
Nah it was just some guy on Reddit and the ‘application’ is shady asf which is why I wanna take it, I wanna see how deep it goes
The weirdest part is that he specifically wanted 17-18 yr old college students
I can link u the post if u want
I appreciate it, but no thank you. I'm also getting "this is shady" vibes, and I'm not comfortable helping further with this.
Ik it’s very shady, but I have to know what exactly he is doing? Surely an iot device by itself would be difficult to use maliciously (assuming this is some kind of weird backhat recruitment) but there’s really so much wrong with the job offer
that was a tragic conversation
can i make a discord bot host (using nextcord) with a esp32?
Hello, I'm thinking about getting a launchpad pro mk3 and reprogramming all the buttons to do custom stuff. I found a programmer's reference manual online, so it looks possible, but one thing I'd like to do is have my computer accept the inputs from the device automatically, rather than open a terminal and have a script running in there. What's the concept I have to google to learn how to do this?
@dreamy rover
Because the esp32 can't run full python, you'll have to port all of nextcords features to the esp if you want to even try, which is no small feat. I'd advise against it due to the mountain of complexity it would entail
hmmm ok ty
Lower level a languages such as C and assembly provides API to work on with high level languages, that's how high level languages can access it.
So you can have better freedom if you go into low level rather than high level.
But the complexity will be higher in there.
Hi All,
Am I missing some basic fundamental here?
I have a flow meter with a hall effect sensor giving me 107 pulses per liter and a max flow rate or 150 liters per min.
I run my signal generator at 269Hz (basically 150 LPM) and I can figure out the math to interpret how to display the total liters anywhere near the built in lcd display on the flowmeter (that has the 107 K-Factor set in it).
What am I missing?
@sullen geode whit 107 k factor you mean 107,000 * liters *minute?
can some suggest me a decent bluetooth library for this? https://docs.zerynth.com/latest/hardware/ZM1_module/
@solemn flint Please refrain from spamming. That said, if you have questions you're welcome to ask. Here are resources you can use to learn: https://www.pythondiscord.com/resources/
Well that wasn't technically spamming
But ok
I'm just trying to get 50 message ASAP
Ah
I'm text in general ig
!tvmute @solemn flint 7d Don't spam to get voice-verified
:incoming_envelope: :ok_hand: applied voice mute to @solemn flint until <t:1649685097:f> (6 days and 23 hours).
Oh cmon.
Quote from #voice-verification:
Spamming to meet any criteria will get you temporarily or permanently banned from voice, and potentially the community
We generally don't want people to spam on our server. If you have any more questions, you can contact @atomic flume .
Ok so I have a serial connection between my laptop and a Pi, but they are both failing to decode each others messages. I encode each message (the serial lib requires it) and then try to decode it on the other side. I keep getting errors like codec can't decode byte 0xff in posistion 0: invalid start byte. Changing small things around the code just moves the error to another part of the code. It does work if I use my laptop for both sides of the exchange. Any idea's what might be causing this?
Byte order? Is one big endian and the other little endian, perhaps?
I just checked both with sys.byteorder, both are little
thx for the suggestion anyways
Yeah. Not sure what else to suggest. have you tried sending just a couple of bytes? 0x5A5A might show something.
Well it did show something new, the error now names 0xfb as the faulty start byte instead of 0xff
What version of python are both using?
The pi is 3.9.2, laptop 3.10.2
that should be fine.
What are you using to send the data across? https://stackoverflow.com/a/22216798/2469609
I already use a.encode(), but I'm going to try adding the strip() your stackoverflow mentioned
I've got to step away for a while, best of luck and if it doesn't work, a sample of the code on both the transmitter and receiver will be helpful
strip() doesn't work, maybe because it's not unicode chars I need to remove, they fall outside of unicode. I'll provide some code
print(a)
i.append(a.decode())```
This is the recieving end, connection is the serial object, a is a temporary var to store incoming bytes in and i is a list for making a string out of all the recieved data
writing is just connection.write(input().encode())
Is possible to use Arduino with python?
Like connect sensors
The board
I'm pretty sure that is possible to use the Rasp Berry one, I'm not sure about
Arduino
depends what you mean by Arduino
Micropython and Circuitpython support many microcontrollers (few of them are Arduino made, because AVRs have little flash and ram, but many are compatible with the Arduino IDE too)
lists of supported boards:
https://circuitpython.org/downloads
https://micropython.org/download/
host a server
In python I've got a program receiving a constant stream of floats (from a sensor). What would be the best way to smooth out the readings a bit?
What does the data look like?
You could use a low pass filter to help smooth it up: https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.butter.html
a constant stream of floats
My temporal fix is to save the last 5 measurements in a list and taking the average of that list as value
what sort of sensor is it?
gyroscope
That's functionally similar to a low pass filter--only a signal that's been present for 5 samples can make it through assuming your noise is gaussian. Give the butterworth filter a shot and see if it works
is your issue with noise during movement or noise while idle?
What I meant about what does it look like--Is the raw signal blurry like the 03um particles, or is it clean like the temp plot in these two images
movement
I didn't graph it, but from what I've made so far it looks the most like the upper one
but a lot less blurry
wait no
That's not true
The lower one is the most like the gyroscope output
Here's the raw, and filtered data using a butterworth filter. The raw data is sampled once per minute so the cutoff frequency of the filter is crazy low. You'll need a cutoff more accurate to your data's sampling frequency. But this kind of show's what it can do
if you're doing real time filtering, the filter will cause a delay in your signal based on the order of your filter, but a butterworth is a comparatively low order filter when you stack it up against other filter types
Yeah, I saw that with my temporal fix
But I'll look into the butterworth filter
It can be confusing at first, feel free to ask questions if it confuses you, but once you get use to playing with it, the butterworth filter is a nice and easy one to use and understand
das someone already have experience with tensorflow on a raspberry pi 4 64bit? i am trying to install the lite version but it is stuck at 24% for about 6 hours 🙂
are you building or installing from a wheel?
no for the sorce becouse i use 3.8
i followd this form there website (www.tensorflow.org/lite/guide/build_cmake)
Could you clarify this? I don't quite follow
the cloned tensorflow reposiroty
Are you building on the pi itself? or building it on a computer and putting it on the pi?
i did not find a wheel that did not fail when i wanne install it
yes on the pi itself
can you do it on pc and that put it on a pi??
ok. That makes sense, thanks for bringing me up to speed.
Building tensorflow lite is just going to take a long time if it's able to build without failing. 6 hours isn't unreasonable, especially if you're not on the 8gb model, but even then. It could also be getting too hot and slowing down to avoid overheating
ahh oke i put 2 90mm fans for better airflow
Probably, but I don't know enough about compiling it to give you a starting point. I asked because if that was what you were doing then I wouldn't be able to help
is it posible to build tensorflow on a pi or not if not do you know how to change it to the lite variand?
now i train it on py pc becouse of the gpu and than pull it from git (that is my intention but becouse tensorflow is not working i did not have te time t try it)
It should be possible, but between the 64 bit os, and tensorflow lite not really openly having a wheel for the 64 bit version I don't know how much of a headache it'll be to get it up and running. right now if it doesn't error out, I'd just let it run
please dear god help
Send it to my address
Any help?
ehhhh what exactly is wrong? any errors? and some code can be helpful yknow
Hi
I have Adafruit Trinket M0
Can I use it to control a stepper motor?
What are the disadvantage from Arduino mama and the trinket?
*nano
The main differences are pin availability (trinket has 5 GPIO with 2 PWM, Nano has 22 GPIO with 6 PWM) and pin voltage (3.3v trinket 5v nano)
You'd probably be able to connect it to a motor shield though https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino
what are you doing that is causing this? Are you trying to vnc in, are you connected to a monitor, are you getting errors elsewhere?
I have no idea. I got a camera for pi, then restarted the system and BANG nothing works, and I can only remote in via putty
which connection did you use to plug the camera in? Are you sure that you used the camera and not the display connection?
itd the one closer to the usb and hdmi connectors
The usb c connector or the usb 3.0 ports?
the one thats NOT on top the micro sd
Cool, that's the correct one then
damn
Try unplugging and plugging back in the camera
that's ok
sometimes reseating everything fixes it, it's just working through the debugging process
next up we're going to shell into it with putty, then enter the raspi config:
sudo raspi-config
Navigate to resolution, and select a screen resolution you want to use.
by the way, are you connected to the hdmi or are you vnc-ing into it?
vnc
tried changing resolution btw
Ok, what else have you already tried so I don't rehash it?
uhh resnalling the display packages
ok, let's check that it is definitely booting to desktop then
sudo raspi-config again, scroll down to the boot options, and select boot to desktop
or whatever that one is called
k, would u mind if i finish this game? ill ping u onc eive done this
I might be away from the computer by then, but if you post where it gets you either I or someone else can swing by and continue helping when available
k
@errant wigeon back, trying it rn
hi ya'll could anyone give me a hand with a function error I'm trying to program an encoder count function in circuit python and im getting a local variable error.
also didnt work
anyone else got any ideas? 😭
@errant wigeon sorry for ping man, u back? im despreate idk what to do 😭
Would you guys recommend that I use rasbian 64 bit instead of 32 bit on my RaspberryPi 3
(I know this isn't a python specific question)
Hi, I have a probleme whit an esp32 with micropython on Pymakr on VS Code
this is my code :
Hey @steep lotus!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
from position import *
def moveDiceTo(position1, position2):
position(position1)
fermerPince()
utime.sleep(0.5)
position(position2)
ouvrirPince()
utime.sleep(0.5)
moveDiceTo(1, 2)```
and I upload the file position.py on the esp32
when I run my code I have this error :
File "<stdin>", line 2, in <module>
File "position.py", line 6, in <module>
TypeError: object with buffer protocol required
Thank's
what's in position.py ?
It's a program who setup the position of the servo motors
oh, sorry, i forgot explain what I want to do
My program will sort dice whit a robot arm
I solve it
thanks
ok cool 🙂
So I am working with a company and they want to deploy 1000 esp based dataloggers running on the same wifi network (using range extenders may be) and they will be logging the data every minute. But I am not sure if let's say all the esps send the data at the same time to the server, will the server be able to get all the 1000 data? or it will collect some and fail to collect the others. If anyone can give me some idea how to tackle this issue, that would be great. My current plan is to time sync all the esps and add random delays before sending the data.
HAS NOBODY ELSE HAS THIS PROBLEM
I need help
How to upload a adc controller or rom controller code (PYTHON) in Arduino
how do i get started with microcontroller in python, just ping please
micropython. easiest thing of all time.
PLEASE ANYONE HELP
Try uninstalling, and reinstalling the vnc package, then if that doesn't work you'll probably have to save everything from the pi and reflash the OS
This might be a better question for the #networks channel, as it's less about the ESPs, and more about how the server can handle so many requests and if the network can handle 1k unique devices
Welp, scorched earth tactics here we come
i used to have a avatar pic - it was a glorious BBQ steak ....
but yours is raw.........BBQ season
pls no cook thanks
ok so fuck, the whole thing is fucked. gotta reflash the hard drive
thank you
please help i cant seem to connect, nither local or ip works. please help, yes i have ssh file in the storage
whats the best micro-controller ?
knock knock anyone here ?
best for what
such a big question
hello guys, my esp32 isnt running boot.py when im powering it
the code :```py
import json
from machine import I2C, Pin
from modules import LCD1602 as lcdi2c
import network
import os
import time
import webrepl
with open("settings.json") as settings_file:
settings = json.load(settings_file)
def connect(ssid, password):
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect(ssid, password)
return wlan
wlan = connect(settings["wifi"]['ssid'], settings["wifi"]['password'])
lcd_i2c = I2C(1, sda=Pin(21), scl=Pin(22))
scr = lcdi2c(lcd_i2c)
scr.puts(f"{wlan.ifconfig()[0]}")
webrepl.start(password=settings["webrepl"]["password"])
when im run it in thonny, it works
If you're using thonny, are you sure that the files are copied to the board, not just running the files in thonny?
Copy the files onto the board from a file manager to make sure that they're on the microcontroller
(Another way to double check that it's saved to the board is to unplug it, close thonny, plug it back in, and open the boot.py up and see if the code is still there)
hehe some files werent on the board yet, thanks for your help
If you have a problem with a program, project and more I wil help you. PM me.
https://docs.arduino.cc/learn/programming/arduino-and-python this might help u
i have to dowload these drivers: https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers but for some reason, the site dose not allow me to dowload them, wheare can i find an alternative way to get those drivers?
my zerynth board is connected to COM1 i need to change that, but on it's SDK there isn't a "cange COM button" like arduino, is there a way to cahnege it from windows or somthing?
@quartz remnant thanks, but as i said, the site gives me Access Denied
weird either your IP is blocked or if you are young it got blocked because children safety
it worked on edge, LOL
is really wierd becouse i dowloaded other stuff from chrome like node js
that is still an official web site
idk, thanks for the hint @quartz remnant
no problem
to istall that driver i need to run the .sys file, right?
if i try to run it, it gives me cannot run in win 32 mode regardless if is the x64 or x86
Hey @delicate knoll!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
@hallow igloo But it says it doesn't support Arduino UNO!
That's why I asked.
yeah it doesn't, Micropython and Circuitpython only support "big enough" chips (regarding ram and flash, and 32 bits).
options to use python on Arduino or other maker-friendly boards include:
- getting a supported board. (Big lists on both MP's and CP's sites).
- using python on a PC interfacing with a firmware on the board (like Firmata) (only viable if always connected).
- other ? (https://sneklang.org/ supports the Uno apparently).
It is possible to make MicroPython modules (for example machine) visible in Visual Studio Code?
There are solutions if you look for micropython stubs, like this https://micropython-stubber.readthedocs.io/en/latest/
these are not very good quality stubs
iirc they do not have parameters
i did open an issue for that matter https://github.com/Josverl/micropython-stubber/issues/5 but it seems handling too many firmwares around is not viable for the maintener ( but the consummer only need a few ... )
i get a peripheral error on sht21 on zerynth https://pastebin.com/WRCzi7nJ the reading works despite the error
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Someone help me
How to use micropython on Arduino
I downloaded [MP] Micro Python, btw idk how to use it
someone please help me
What board are you using ? Have you seen https://docs.arduino.cc/learn/programming/arduino-and-python ?
a common tool for using a MP board is Thonny https://thonny.org
Eric IDE has also micropython support now ( though i did not test )
what:
Core 0 register dump:
PC : 0x400dafb1 PS : 0x00060b30 A0 : 0x800db022 A1 : 0x3ffdede0
A2 : 0x0000ffff A3 : 0x00000040 A4 : 0x00060f20 A5 : 0x00000000
A6 : 0x00000001 A7 : 0x3ffddf80 A8 : 0x800da80e A9 : 0x3ffdedc0
A10 : 0x3ffb580c A11 : 0x00000002 A12 : 0x3ffb0e48 A13 : 0x00000001
A14 : 0x00000002 A15 : 0x000008b8 SAR : 0x0000001f EXCCAUSE: 0x0000001c
EXCVADDR: 0x00010006 LBEG : 0x400da6f5 LEND : 0x400da6fc LCOUNT : 0x0000001c
Backtrace:0x400dafae:0x3ffdede0 0x400db01f:0x3ffdee00 0x400db0c7:0x3ffdee20 0x400db1ed:0x3ffdee40 0x400e64dd:0x3ffdee70 0x400df346:0x3ffdee90
ELF file SHA256: f6bdc0e2ca96be4a
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff19e8,len:2512
load:0x40078000,len:12708
ho 0 tail 12 room 4
load:0x40080400,len:8232
entry 0x400807f4``` means? i get is caused by an unhandled exception, but what type of exception
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
there is something that can decode the register dump ?
A5 is 0x00000000, can that be some kind of "null pointer equivalent" or something ?
i found the solution!
def print_sensors():
while True:
lock.acquire()
readings=[temperature,humidity,pressure]
print(readings)
#sleep(5000)
lock.release()```
because print_sensors have to run on it's own thread, the rest of the function have to run under a loop
heyy
someone please help me in programming Arduino using Python
I downloaded micropython, btw Idk how to use tht
it is just github libs
What board are you using? Most of the arduino family can't run micro or circuit python
The supported boards are mostly covered here:
https://circuitpython.org/downloads
https://micropython.org/download/
Alternatively there is pyfirmata
https://roboticsbackend.com/control-arduino-with-python-and-pyfirmata-from-raspberry-pi/
But it's very limited, it can be difficult to get working, and I have no experience with it
somebody write a comprehensive article on "programming Arduino using Python" in all possible sense !
Arduino has this article but it's quite specific: https://docs.arduino.cc/learn/programming/arduino-and-python
by the way I just discovered that "OpenMV editor"
We can make a pinned comment in this channel, would you be up for helping me draft/proof read a message that could address it?
Programming with Python on Arduino, Other Microcontrollers, and Embedded Linux:
Put simply, most Arduino boards can't handle Python, or it's variants MicroPython and CircuitPython. MicroPython and CircuitPython can only support chips which are "big enough" (regarding ram and flash, and 32 bits).
PyFirmata offers a way around the size limitation by running a program on the arduino which listens for firmata commands from the serial port, commands which are sent via PyFirmata
Source: https://github.com/tino/pyFirmata
Docs: https://pyfirmata.readthedocs.io/en/latest/
There is also Snek, which focuses on these small chips using a limited subset of Python.
https://sneklang.org/
Supported boards can be found here:
https://github.com/keith-packard/snek#supported-hardware
For "Big Enough" chips, MicroPython is a lean and efficient implementation of the Python 3 programming language that includes a small subset of the Python standard library and is optimised to run on microcontrollers and in constrained environments. CircuitPython is a fork from MicroPython which has some minor changes to MicroPython in an effort to simplify experimenting and learning to code on low-cost microcontroller boards.
The boards they support can be found here:
https://micropython.org/download/
https://circuitpython.org/downloads
Embedded Linux (which Raspberry Pi OS--previously called Raspbian--is an example of) is yet another way to use python on an embedded device. Rather than trying to build MicroPython or CircuitPython for a board, you can try to build the Linux Kernel for a board, and then if it can compile for the chip the board uses, everything available to linux is available to the board--which includes CPython. With the Raspberry Pi, the kernel works and Python compiles. You'll have trouble running large, intense programs on a pi, but for a lot of projects it is a great solution.
more Raspberry Pi information can be found here:
https://www.raspberrypi.com/
That and something to copy/paste from will be helpful
How's this draft?
that's nice
I sometimes mention https://sneklang.org/ that can compile to the Uno for example, but it seems pretty niche
(there's a stray "for for" near the end that I suppose was intended to be a "but for")
How's that edit? I have 0 remaining characters for the message to any change will have to net 0 characters or remove characters before adding anything
Woo! So much room for clarification!
not enough to mention Zerynth ! (it's a professional "IOT platform" that apparently uses python somewhere, no need to mention it when talking about Arduino)
I've adjusted this like to read more easily, "There is also Snek, which focuses on these small chips using a limited subset of Python"
Fixed the double for into "but for", and I think this covers what's needed for the "Python on Arduino" questions.
I think it's ready to pin.
I've not heard of zerynth in anything more than passing. If there were more questions about IOT here it's be worth making an IOT pinned comment, but I don't know that this server runs into it all that often
Have you used Zerynth before? What's it like?
no, I have no idea how it is
lol, oh well. It's good to know about at least.
@gentle vapor thanks for your help in getting that message written. I really appreciate it!
thank you for doing it 👍
Dude I have Arduino DUE ARM Family
See this one Arduino Board I have it is Arduino DUE, so please tell me how to use lemme send another pic of a research which shows that this Board is supported.
See that this board is supported, now please tell how to use
And one more thaing that Can we use VS Code for the IDE in replacement of OpenMV editor
According to the wiki no work has been done on porting to the chip: https://github.com/micropython/micropython/wiki/Board-Arduino-Due
There's a wiki that talks about how it might happen: https://create.arduino.cc/projecthub/AdiK/arduino-due-micropython-enabled-717dd9
But it looks like it doesn't really work, and to get it to compile and uploaded takes a mountain of work and still most of the board doesn't work.
?
Btw Can I run it on Prtenta H7? it has 16 GB of FlashMemory 2 GB of RAM and Linux OS and much much more!
??
Look what arrived
openzz its , openzz itzz
Ok thx
hello guys i need help i need to make a project in https://robotbenchmark.net/benchmark/obstacle_avoidance/ can sm1 give me some tutorials to learn abt controll library or any usefull documentation
its tooo ez with arduino and ulta sonic sensor
I need to do it with python in library smt caller controller in robotic
But we didn't study it and i need to do it soon
can you link the controller library?
what
can you show me what you called "controller", or "controll library" that you said you have to use? I can't find anything from robotbenchmark that talks about the "controller in robotic" that you said you have to use
from controller import Robot
me to
i didn't find anything abt it
and i didn't study it in uni
It looks like this is the tutorial: https://www.cyberbotics.com/doc/guide/samples-demos that should help you figure out how to use the interface
ive seen it ill use it and see if it will gimme a good result
https://www.cyberbotics.com/doc/guide/introduction-to-webots#what-is-a-controller
You'll need to go through a lot of the pages to figure out how to use it, not just copy/paste from the demo
that's the problem cause i don't have to much tim
e
but ill try
I need some help. I'm currently working on a "JetECU", which is basically just a computer-controlled throttle and fuel mixture ratio. I'm looking at making a GUI application to display the information, similar to when tuning a car's ECU.
TL;DR: I need a way for my Pi Pico to send and receive data from my laptop, the data has to be read in realtime from both parties.
To picture it in your head easier, look up car ECU tuning videos, I need something like that, just MUCH simpler... All I need is to learn how to open a (serial?) connection between the Pico and my laptop when it's plugged in.
that's an easy thing to do when plugged to USB, any programming environment for the pico should be able to open a serial connection through USB, and any self-respecting programming environment on the PC will be able to use the serial API to connect to the USB serial port and communicate with it. Pyserial can do that for example.
After that the details depend on what you're using on the board.
Cheers!
Is there a way to use Python's "threading" module with MicroPython? I need to run two functions at the same time, I've looked at asyncio and is doesn't exactly look helpful, especially from the video I watched...
most MCU don't offer threads, while uasyncio can give you green threads everywhere ( even on WebAssembly )
Hmm, this is not great. I can get my code to run sequentially, it's just not as efficient as how I'd like it.
Anyways, do you have a simple way of writing a serial message to a RPi Pico from a connected computer?
I have Pico --> Computer working, I just need the other way around
the pyserial module is usually good for that
cheers, I'll take a look
Hey @delicate knoll!
It looks like you tried to attach file type(s) that we do not allow (.pdf). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.
Feel free to ask in #community-meta if you think this is a mistake.
Download Invensense ICM-20689 pdf datasheet file
if i want to get a read from from the register "how i am" from i2c, do i have to just issue a read command with the address of said register or i have to do an other operation first ?
which register are you trying to read?
WHO_AM_I @dry fulcrum
just a standard read-only register, nothing special you need to do for it
Hey @fickle lodge!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
Hey @fickle lodge!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
hello to who ever is online
Hello. How does one send strings or integers from a script running on their pc to a script running on a raspi pico that’s plugged into that same pc via usb?
the pyserial module is usually good for that
you can encode the data in binary with the struct module and decode on the other side, or use formats such as msgpack or json, especially if you are running python on the pico, though there are memory and performance costs to consider
I'm planning to write a script to read inputs from a micro device and do stuff on my windows 10 computer. However, instead of having to run the script manually every time I want to use the device, I want to be able to plug in the device and have my computer automatically be able to recognize inputs according to my script. What's the concept I should google to learn how I can make my device plug-and-playable like this?
looks like you want something like "getty equivalent for windows" but afaik there is none so you should write a python script that polls for new serial ports and automatically negociate whit the board when found a new one
Thanks for the tip. I haven't heard about getty, so I'll look into that and if there's anything remotely similar for windows. I also found that a windows service can execute code on system boot, but that's obviously not Python.
Really, I'm just thinking "if I can plug in a keyboard and my pc automatically recognizes the keys I type, then I should be able to write some script that will recognize my micro device and automatically process inputs." I suppose I'll just dig more around these things.
While that is definitely doable, it scoots a bit too close unethical programs for obvious reasons (if you don't know the device is plugged in and it recognizes the keys you type, it could get sensitive information without you knowing).
I'd recommend a macropad like interface that you can activate: https://www.adafruit.com/product/5128 (adafruit products aren't the only solution, but they're what I'm most familiar with)
Oh, that's an interesting device! I didn't realize they were called "macropad". And since I'm writing the input script myself, I think it'll only collect and process the inputs I intend.
Actually I found a way to connect arduino with python it is very interesting. I did it using the serial module in python
I think I'll start with the macropad you recommended. Because to be honest, I'm not considering a micro device, I'm considering the novation launchpad 3, which has almost 100 buttons, lights, and a detailed programmer's guide online.
that would have its own way of programming it, like I assume its own host software/framework
It's a device for music composers, so it does come with a GUI for setting up buttons and lights and whatnot, but there's also a custom mode for programmers to control the device more granularly. It uses sysex messages like in the picture attached.
ah that's all Midi stuff
yeah ... it's midi...
I saw it used midi, and so programming it goes through midi too
so you can do midi with the Macropad too for example with Circuitpython, that could help get you started writing a host application that responds to Midi if you go with that
Okay, thanks for the tips! I'll be looking into macropads.
Try this vid https://youtu.be/Nog1qAY0eG0
Who needs a gamepad anyway?
This game prototype is designed from the ground up with midi controllers in mind. Sliders, knobs, buttons... can we turn this musical controller into something that makes sense for a video game?
I used the rust programming language to make this game
Source code:
https://github.com/TanTanDev/midi_game
Art assets use...
thats nifty !!
Does anyone know how to communicate with the Raspberry Pi Pico and with a python script running in PC via USB with Serial like on Arduino? (Like this:- https://www.learnrobotics.org/blog/communication-between-arduino-python/)
well, like that if you are using Arduino, what are you programming the board with ?
Is there an easy way to work with django and golang on the same project?
We have a small team put together about to start a project and one person only knows go lang the rest of us are django developers. Is there a way to have that person work on eg. A hashing system and then use the output in the django app.
You can use gRPC or REST to make python/go communicate with eachother but I'd only do it for super intensive work where you need Go, rather than looking for any excuse to use it, to keep your project maintainable
Alright thanks. I think we'll just stay away from it then. Wouldn't want to run into problems we can easily avoid.
Hi, is there a way to emulate a raspberry pi, with the equivalent "processing power" on a desktop pc?
yes wrap qemu with https://github.com/opsengine/cpulimit
and calibrate for your pc
Awesome, I will have a look
Thanks
does anyone have any knowledge with usb cable wiring
i've got a usb controller that im looking to repair, and it's got a red, black, brown, and white wires inside it
typically it's red, black, green, and white, so im kinda confused
I'm new to python and i did a simple script for doing conversion, i want it to be on my ti 83 calculator but this error appears when i try it:
"MemoryError: memory allocation failed, allocating 130 byte"
I read that apparently my code would be too big and would use too much ram, do you know any efficient way to reduce ram usage ??
try on that one https://www.numworks.com/simulator/ and tell us if that fails too
oh interesting, can you show your code ?
it work on this calculator
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
what line does the error appear ? there should be a line number in the error message.
Your code is highly recursive, you can't return to the menu by calling menu() you should return instead, and likewise I would advise having each function be iterative rather than call itself, or you'll run out of stack
something like that for the joule function for example:
def joule():
while True:
print("inserez le nombres de Joules")
a = float(input())
j = a / 1000000
print(str(j) + " MJ\n1: autre conversion\n2: retour au menu")
n = input()
if n != "1":
break
(ok I made other changes)
the menu function would have to be a loop too
and the other functions would have to be changed similarly to Joule
you could use a common function for the return to the menu too, like this:
def revenir_au_menu():
while True:
print("revenir aux choix du type de conversion ?\n1: oui\n2: non")
f = input()
if f == "1":
return True
elif f == "2":
return False
else:
print("valeur inconnue")
def mega_joule():
while True:
print("inserez le nombres de Méga Joules")
c = int(input())
mj = c * 1000000
print(str(mj) + " J\nappuyez sur un touche pour continuer")
input()
if revenir_au_menu():
return
this can reduce ram usage for the calculator ?
well I think you are running out of memory because of the recursion, when does the error happen ? is it as soon as it runs or after using it a bit ?
but using a common function will reduce the size of the code
the error appears instantly when i start the script
hmmm
it's just i didin't know how to use "while true:" and "return"
I'm a little surprised that it would be too big a code, but it's a small chip...
Hey @gentle vapor!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
ah oops
that version should run:
https://gist.github.com/Neradoc/12a4e7d73a2856689a0a22695143b191
hey guys I tried to make a package with kivy to make my program executable on Android but i have an error. I did buildozer init and it worked, it created my .spec file, but when I write "buildozer android debug deploy run" i have this message :
Unknown command/target android
hi
hey guys do u know how to put your code in the .aab format ?
anyone familiar with pyserial?
I have a speaker that up until now has been very loud and recently it wouldn't get as loud as it used to, are there any obvious reasons for this?
Hey, I've got a raspberry pi CM4 here and I see it did not come with python3-pip. Trying to install it results in this message:
The following packages have unmet dependencies:
python3-pip : Depends: python3-distutils but it is not installable
Recommends: build-essential but it is not installable
Recommends: python3-dev (>= 3.2) but it is not installable
Recommends: python3-setuptools but it is not installable
Recommends: python3-wheel but it is not installable
E: Unable to correct problems, you have held broken packages.
I've tried what I could find on google but nothing helps, any ideas?
what microcontrollers are best suited for python?
of all of those, I would avoid the SAMD21 and the ESP8266 because you'll be quickly limited by the ram, RP2040 is popular and rather nice, ESP32 can have loads of ram and flash and has wifi/bluetooth (depending on the chip), high end STM32 should be pretty good on Micropython in particular, NRF52840 is pretty good for bluetooth, etc.
https://circuitpython.org/downloads
https://micropython.org/download/
Thank you Neradoc
What can i do python with Arduino?
There is a pinned message: #microcontrollers message
With an explanation and resources, hopefully it gives you an overview and helps you start!
Does anyone have experience with FIR sensors?
I don't but if you explain your use-case or question someone else here might be able to offer help
Well, the question would have been what use cases are there and what any advice I may need were I to consider using one
:incoming_envelope: :ok_hand: applied mute to @tired bison until <t:1651365956:f> (9 minutes and 59 seconds) (reason: chars rule: sent 7998 characters in 5s).
Are you looking at a full package? Like a kit to attach to a car, or just the sensor itself?
Do you have a use case in mind? Some suggested use cases for the cheaper sensors are presence detection and identifying if a heating element is on (like leaving a stove on). The most common use case I'm seeing for more expensive, higher pixel density sensors is in self driving cars for object detection at night
Just the sensor itself and probably for like a drone
For that your major concern is probably going to be power draw for the sensor, (and power draw for signal processing but the sensor itself might draw enough power that processing it might be negligible in comparison). The other aspect you'll want to consider is how wide is the field of view for the sensor, and how high does the drone need to be to see anything of value as a result
hellooo
i was wondering if anyone will be willing to tell me something about esp boards
like esp32
What is your question about them?
Hey guy, i'm new to computer science so i ahve a qestion about arduino and embedded system, what kind of project we need arduino, and what project we use embedded system ? TY
An embedded system is a computer system—a combination of a computer processor, computer memory, and input/output peripheral devices—that has a dedicated function within a larger mechanical or electronic system. - [Wikipedia]
Some examples of things that can be done through embedded systems:
- Digital cameras.
- Digital wristwatches.
- MP3 players.
- Appliances, such as refrigerators, washing machines, and microwave ovens.
- Temperature measurement systems.
- Calculators.
and more
Some example projects that you can try with Arduino:
- Arduino Music Instrument.
- Arduino UNO Fingerprint Door Lock.
- Arduino Robot Car.
- DIY Arduino Handheld Game Console!
- Home Automation. ...
- Arduino Car/ Truck Simulator. ...
- Universal Remote Control. ...
- Laser Tripwire Alarm Security System.
and more
hello guys i have a m5stack core2 esp32, i run micropython on it, my question is how to add libraries to the device 😮
i have Thony, mu, and vscode
?
Thank you !
Which fundamentals do I need to know for output to electric motor
and for input
Simply what I need to learn for robotics
electric motor usually comes with a spec sheet that tells how to use it and its specification, I would suggest familiarize yourself with different type of motors and their specification. Then try to play around with other kind of actuators. Using arduino to controls is a great way to start to play with it.
Wanna get started on them. If they're better than Arduino for my projects (robot arm)
I can use Arduino and micro python btw
I think that depends on your need, I used esp32 because it has built in Wifi/BLE and its smaller.
and cheaper 🤑
Esp32 yeah I think I'm gonna use that but I'm really not sure about if it needs any extra adapter or hats for servos ands stuff. Also I wanna trynna get it to surf the internet freely
I got some python script that I'd like it to use.
It's gonna use the esp 8266 chip I guess
Can someone who knows micropython for EV3 Lego robots create a code that can track the black line? It doesn't need to be extremely accurate but as long it doesn't go off course.
Starts from the left green circle and ends at the right green circle.
Your code should look something like This:
#pragma config(Sensor, S1, touchSensor, sensorEV3_Touch)
#pragma config(Sensor, S2, gyroSensor, sensorEV3_Gyro)
#pragma config(Sensor, S3, colorSensor, sensorEV3_Color, modeEV3Color_Color)
#pragma config(Sensor, S4, sonarSensor, sensorEV3_Ultrasonic)
#pragma config(Motor, motorA, armMotor, tmotorEV3_Large, PIDControl, encoder)
#pragma config(Motor, motorB, leftMotor, tmotorEV3_Large, PIDControl, driveLeft, encoder)
#pragma config(Motor, motorC, rightMotor, tmotorEV3_Large, PIDControl, driveRight, encoder)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
/*
Create a program that drives the robot forward until the Color Sensor sees red.
The robot then stops.
*/
task main()
{
while (true) {
if(getColorAmbient(S3) < 45)
{
setMotorSpeed(motorB, 0);
setMotorSpeed(motorC, 80);
}
else
{
setMotorSpeed(motorB, 80);
setMotorSpeed(motorC, 0);
}
setMotorSpeed(motorB, 0);
setMotorSpeed(motorC, 0);
}
It's a example for C
I don't think that's the way the teacher intended me to do it though
Can you show the code you have so far and tell us where you're stuck?
Thing is, I'm having trouble on where to start haha
My teacher proposed that I should move in small quantities of left and right so it sort of zig-zags
Either way, I'm about to go sleep so I'll respond in around 9 hours if you reply
Ok, we can break the problem up into smaller bits.
Are you able to move the wheels in your code?
You'll probably want something extra like a hat to safely power and drive the servos, but if you're just doing a little with it it might be fine assuming the board can output enough current to drive the motors.
For surfing the web, I'd recommend going to a pi instead of an esp--it's really easy for a website to send more data than the esp has memory for. An Esp is ideal for smaller known endpoints, like fetching forecast, subscribing to an mqtt channel, posting a sensor value, etc. Purpose driven type of scenarios
Sorry I just woke up, but yes I can move the wheels
No worries, I'll have to leave soon but we can keep outlining for a bit
can the wheels move individually?
And can you read the sensor input that helps tell you where the line is?
I'm pretty sure the wheels can move individually and what do you mean by the sensor input?
Is it like the reflection values?
Oh yea I can read them
Yup those, whatever you're using to identify the line
Do you have any code to follow a straight line?
or a line with a small curve in it?
So i tried doing what my teacher proposed earlier which was to move in zig-zag lines
#!/usr/bin/env pybricks-micropython
from pybricks.hubs import EV3Brick
from pybricks.ev3devices import (Motor, TouchSensor, ColorSensor,
InfraredSensor, UltrasonicSensor, GyroSensor)
from pybricks.parameters import Port, Stop, Direction, Button, Color
from pybricks.tools import wait, StopWatch, DataLog
from pybricks.robotics import DriveBase
from pybricks.media.ev3dev import SoundFile, ImageFile
Initialize the EV3 Brick
ev3 = EV3Brick()
Initialize the Colour Sensor
colour_sensor = ColorSensor(Port.S1)
Initialize the Obstacle Sensor
obstacle_sensor = UltrasonicSensor(Port.S2)
Initialize the motors
left_motor = Motor(Port.A)
right_motor = Motor(Port.C)
Initialize the end effector
obstacle_remover = Motor(Port.D)
Initialize drivebase
robot = DriveBase(left_motor, right_motor, wheel_diameter=55.5, axle_track=104)
while True:
if colour_sensor.reflection() < 14:
robot.drive_time(50, 25, 300)
else:
robot.drive_time(50, -45, 300)
Doesn't really follow a straight line perfectly
it doesn't need to look perfect, it just needs to roughly follow it enough for us to build off of
ok what point does it go crazy?
Its sorta difficult to explain but when it turns from the white area back into the black line
It doesn't stay long enough for the robot to turn fast enough back into the black line
ok, so let's take a step back
How quickly does it move?
let's make the robot a lot slower (I don't know what 50 means in this case, but let's try 5 instead)
Let's set it to 5, that way we don't drive over everything in one iteration
That's ok, we'll brainstorm the needed changes, then when you're able to test it just go through the changes we talk about one at a time, that way if something works, you know what part worked, and if something goes crazy, you can know exactly what went wrong
Here's a visual representation
Aight
So the first suggested change is to go really slow--got a guess as to why?
So it doesn't go over the black line too quickly
nice, yup that's what I'm hoping it helps with!
There are marks for time but for now it shouldn't matter too much haha
haha I figured, but when outlining getting it to work before we optimize it is the way to go.
so next, we should probably figure out how to handle turns: so let's focus on how the sensor figures out where the line is
so how does the color sensor work, is it a single color sensor, or do you have a couple of sensors together?
Single colour sensor
I'll send a picture of the robot
The thing sticking out and is facing towards the bottom is the colour sensor
It basically reads what is reflected back to it
So in this case, black reflects around 5 - 10
While white is basically anything higher than 10
ok, so let's say the sensor say's it's currently over a line--the line now could be moving forward, left, or right--what do you think you should do to figure out which direction (if any, or if multiple) the line goes to?
at the same time?
Let's start writing a small function to help organize the decision making process
def line_tracker(color_sensor):
# Figure out if the line goes Left
# Figure out if the line goes Right
# Figure out if the line goes Forward
# Figure out if the line ends
So you've got a little code already we can start putting in this function, and it's possible that we shouldn't try to do all of these steps: maybe we can answer multiple directions with a single action. But for now, let's figure out how to tell if there's a line to the left
If there's a line to the left it should turn anti clockwise then move forward?
Nevermind, to detect if there's a line to the left, it should read for white values, and then turn anticlockwise which it will then detect a black line
ok, so how do we turn left until we either turn too far, or find the line?
robot.drive(5, -x) when the colour_sensor.reflection() > 12 -> Detects white
robot.drive(5, x) when colour_sensor.reflection() < 12 -> Detects black
In that case, what is x and -x?
And sorry, I'll probably have to step away for the rest of the night shortly
All good
I haven't figured out the angle yet
Probably will take some trial and error
Would anyone know how to connect a co2 and oled screen to mc? oled uses SDL and SDA I2C, and the co2 uses UART TX,RX. both connected to the right pins. i know how to do this in Arduino C but i have no clue where to begin in python
here my set up
The data is sent to TTN over lorawan
hey guys am working on a flame sensor with nodemcu need help
Is there a way to record the signal strength from a HDTV antenna?
spectrogram
That make sense, so to break down our programs outline, we need something to turn a little to the left, a little to the right, move a little forward.
We can probably keep moving forward if the sensor see's that it's over the line, and only check left or right if the sensor see's it's off the line.
That's a pretty good starting point--it will run into some problems, but it should give you something to write/test and see what happens
Are you using micropython/circuit python/embedded linux? And do you have any sample code?
For both the i2c bus and the serial line, you'll need to initialize them, and if the sensor needs a startup command, send that as well
Micropython, no sample code as there’s barely any online. I have something for the co2 sense that I can send. Just a sec
Ok, what are the screen and sensors part names?
ah and have you been using the repl with it to make figuring out the sensor easier?
no as a visual. but more of a hard data to be saved for example 60% strength. then save that to file
So sensor is called MHZ19B, the display is ssd1306 128x64
And yeah I’ve been trying to, but again I’m extremely new to python and this type of stuff. I’m a wizard with C but who isn’t
whats C lol
Don’t worry about it 🤣
It's a programming language, it's related to Mr.Fox's question though so you don't need to worry about that one
You can save the raw data of a spectogram
first time coding more then just hello world.. I want to record in a file the HDTV and RF signals around my house.
so i take that raw data on a headless PI and convert it to a % based on 0%-100% strength
for the MHZ19B--you might need to write the full driver. I see some drivers written in cpp for the esp, so you can copy that for the protocol which is helpful, but i haven't found a circuit python/micro python driver yet
Well this is interesting
https://github.com/nara256/mhz19_uart/blob/master/src/MHZ19_uart.cpp
I haven't dug deep into it yet, but this was the first I found
I was given a broken Lopy4 which i spent 3 weeks trying to fix, i didnt know it was broken. supervisor said nah it cant be broken was used last year. turns out it was but my project is due in 4 days so idk if i have time to write an entire library
i have a Raspberry Pi TV HAT.
are you able to get that raw data strength already?
i can receive Hdtv-over-air with my Raspberry Pi TV HAT. but tring to fixure out how to read the signal strenth
headless pi
You won't need a full library,
you're trying to do a single thing, log the co2 levesl with it. So for that you just need to send the commands to startup/initialize and get values
I have the entire code working in C, display and Sensor. is there any significance thats in c++? i tried connecting the fipy using arduino C over LoRaWAN to ttn but wasnt having any of it.
lora is a MUST, its a communication thesis paper
no, (I'm going to say something technically wrong, but in this case it's functionally right) for this c and cpp are more or less the same
What is the error for the comms?
oh god depends on the library and board
LoRa isn't something I've played with, but it shouldn't matter if the transmitter is in c and the receiver is in python
What hat are you using? That'll be the first thing we need to figure out how to access signal strength
Ok, I am a bit confused about your setup.
The part you showed me I assume is the sensor and transmitter, is that correct?
not quite,
so basically the set up is called the end-device. that transmit data using LoRa RF to a gateway device thats hooked up to my wifi, then sends it to a server. lora pretty awesome, super low power and a crazy range
i can get the python script to run and connect, send data to the gateway no problem, i also wrote a script in C that is able to read the co2 and show it on the display
that black antenna is required to send data to the gateway
heres the gateway:
now i either need to figure out how to read co2 sensor and show it on display in python or figure out how to connect the device using lorawan in C
Ok I think I follow now, thank you
So just so that I know what does and does not work--can the pycom send a test 'hello world' to the gateway?
yeah, sort of. if you mean part of the lorawan protocol then yeahno, it sends a join message over OTAA which then forwards it to the server to verify the device's credentials. or if you mean just coding it to send hello world, then yeah
like connectivity works fine, ive tested it multiple times sending data back and forth. in C, it's very tricky because its not native and id have to write my own verison
I mean the first one. So even before we read the sensors, we'll need to figure out how to connect to your gateway, and send a dummy message to make sure the connection works
in python, i have it down to a T. works ok in python
ah ok so if we could read a sensor, we could transmit it easily?
Ok cool, that will make this easier.
Now are you sure the pin it's connected to is a UART capable pin?
are you using tx0 or tx1
good (TX0 is what it uses to communicate to your pc, so while it's plugged in if you used that one it would go kinda haywire)
Ok, so looking at the sample c code it's baud is 9600, so when we initialize the serial port you'll set the baud to that
Worst part is when it's not plugged into your pc it works fine
Bugs like that are annoying, but part of how it goes
haha yeah the most insignificant bugs cause the worst headaches
yeah so
i have this so far
as far as im aware, the uart.write is used to alert the sensor and fetch readings?
sweet--one last cheat is to look for that sensor paired with the raspberry pi
that code does have an error tho, line 6: TypeError: 'NoneType' object is not iterable
Hmm
perhaps you'd understand this better than i do: https://python.plainenglish.io/measuring-co2-with-mh-z19b-on-esp32-da4551e385ec
is the co2 sensor connected to 5v?
no, 3v3
it says it needs a 5v power supply in most of the docs I've been reading, that could be part of it. Let me read through this page first though
The datasheet says operating voltage 3v3 or 5v, and i have a working version using 3v3
sleep for a second between lines 5 and 6
sweet good to know
same line has an error
also, i really appreciate taking the time to help btw, could i do anything in return? like pay you for your time or website help or something
my supervisor belittled the hell out of me during the time i couldnt get it to work. and he doesnt know it works now. so i really really just wanna get this done and rub it in his face
honestly though, i freelance website so if you need any help with website designs or development let me know. my portfolio if you wanna see https://projectsefy.com
I do need to step away for about 10 minutes to take care of something.
I'll be back shortly after though.
When you initialize the uart in your example, you're not telling it to use the tx1 and rx1 pins--I think it might be defaulting to tx0 and rx0
alright no worries, @ me when you back. ill keep cracking on with this
uart = UART(1, baudrate=9600, bits=8, parity=None, stop=1, tx=int(tx_pin), rx=int(rx_pin)) set your uart following this format just to be explicit
then the tx pins would just be 3 and 4 or GPIO numbers?
i always get confused with that part
oof. I'm not overly familiar with micropython--give me a moment to see how it declares pins
no worries take your time
tx=machine.Pin(3) I think is the syntax you'll need
uart = UART(1, baudrate=9600, bits=8, parity=None, stop=1, tx=tx, rx=rx)
has error with tx=machine.Pin(4), i have the offical docs for hte board for uart https://docs.pycom.io/firmwareapi/pycom/machine/uart/
Well darn your initial code follows the docs, well done but damn now we have to bug hunt more
haha yeah well im stumbling through it too, im gonna tear up if i see values pouring in haha
The CO2 sensor definitely works?
the thing is, i dont really get how in Arduino C i needed like 2 libraries but in python it doesnt seem like i need any
yeah definitely works
the sensor will work fine but I thing you have to import it's library
no libs exist in python for mhz19b. i dont thnk anyway
spent 2 days lookin
Micropython has a ton built in, that helps with a ton of it. Then for c you explicitly add all of the files
oh, i have the C code completely done. need python
you guys are working on python
oh i see
sorry to interrupt
you'er alright dude, dw
what is your project about 🌝
heres where im at
Ok let's validate that serial is working at all
Disconnect the co2 sensor, then connect rx1 and tx1 together, run something that transmits and see if you can read it back
co2, on display, transmit to server using lorawan protocal
like short it? straight wire
thats a great idea
yeah, it won't actually be a short because you're just connecting an rx and a tx
yeah yeah short to me is like connectting ends without middle
1 sec
still nothing
I mean you're technically right there, but usually I call it a short if something goes straight to ground
Awesome, that will help us figure out what's going on, we now know where the first issue is
honestly, never thought of doing that. pretty smart
I've got enough all nighters caused by issues like this behind me
ok, so are you sleeping between write and read?
No worries, a shot at answering it is well worth it!
woo!
alright sweet, sensor back?
ok so you're receiving something there!
Ok let's reconnect the sensor, make sure we sleep for a second, then try the code again
That is a simple thing to manage
and it took like 8 lines of code
it was honestly probably just a wire issue
plus needing to sleep for 1 second between write and read
it was the sleep i think
would you have time to figure out the display?
its all good if not
Let's actually focus on transmitting that packet first
That way if your display doesn't work, you can still transmit it to the server
yeah true, that's the make or break, the coms
alright i have the code for coms one sec
from network import LoRa
import socket
import time
import ubinascii
lora = LoRa(mode=LoRa.LORAWAN, region=LoRa.EU868)
app_eui = ubinascii.unhexlify('same as below')
app_key = ubinascii.unhexlify('private you know')
lora.join(activation=LoRa.OTAA, auth=(app_eui, app_key), timeout=0)
while not lora.has_joined():
time.sleep(2.5)
print('Not yet joined...')
s = socket.socket(socket.AF_LORA, socket.SOCK_RAW)
s.setsockopt(socket.SOL_LORA, socket.SO_DR, 5)
s.setblocking(True)
s.send(bytes([0x01, 0x02, 0x03]))
s.setblocking(False)
alright ima try this, just a moment
But you now can read from the sensor, and you have successfully sent data from the lora to the receiver, so while it's a bit of work you can be confident you've already made the individual blocks work
To post code, use the triple backtick, followed by 'py' on the first line for triple backtics
```py
foo
```
That will highlight the code and format it making it easier to read
PAYLOAD RECIVIED
WOOO!!!! Congratulations!!!!
ohhhh thats how, christ ive been messing about with '''cpp trying to do it lul
It's a bit confusing but yeah that's how it works. BUT CONGRATULATIONS!! The screen is now a minor part.
hell yeah
right
DA SCREEN,
i mistakenly put a screen idea in the recommendation section of my draft and my supervisor in big caps said 'JUST ADD IT'
Honestly he's right--early prototypes for products should have status displays built in to make debugging easier
Later as a product develops toward a production run, you can remove it as a part of cost optimization once the process is reliable
haha it is really cheap, but it still adds cost to a BOM, and if it isn't needed, you can keep the product at the same price and drop the part, boosting profits
ahhhh businessman i like it
alright so i have some sources for the screen
lemme find it, i did sort of give up ngl
@errant wigeon https://www.youtube.com/watch?v=zlKJ5hvfs6s&t=763s
skip to like 10mins in
First, let's wire it up, and scan the i2c bus to see if it's recognized
from machine import Pin, I2C
# Init I2C using pins GP8 & GP9 (default I2C0 pins)
i2c = I2C(0, scl=Pin(9), sda=Pin(8), freq=200000)
# Display device address
print("I2C Address : "+hex(i2c.scan()[0]).upper())
adjust the pins to your pins
ok, ima disconnect the co2 n everything
(Here's a driver library for the screen so you don't need to write it: https://github.com/micropython/micropython/blob/master/drivers/display/ssd1306.py)
oh hell yeah, thank you dude
File "<stdin>", line 5, in <module>
ValueError: invalid argument(s) value
i2c docs for the board btw https://docs.pycom.io/firmwareapi/pycom/machine/i2c/
I'm betting the error is invalid pin naming (since we actually need to use machine.Pin(bar) to id a pin)
use the docs declearation of the i2c, then run the scan: print("I2C Address : "+hex(i2c.scan()[0]).upper())
ok doki
IndexError: list index out of range
that might not give you context, one secnd
that means the i2c scan turned nothing up
wait, was the print statement commented out when you got the error?
ah ok lol, I got really confused how it would throw and error as a comment
The baudrate is wrong
9600?
nope, for this one we're going to need baudrate=200000
can you show me a picture of the pins it's connected to?
i just relaised
also in 10 minutes I'll need to step away for the day, I might be back later tonight but I will be back tomorrow. You can keep debugging and if you hit a wall feel free to keep asking here, other's around here can help as well
i got it
Woo!
no worries at all
seriously, youve set me up very very nicely
super appreciative of your help man. thank you. ill send you a freind req in case you need anything from me.
Thanks but I don't accept friend requests from these servers. I appreciate it though!
ah alright thats no worries
DISPLAY IS DISPLAYING
AHHHH
omfg
man i feel like i owe you something
lemme buy you a game on steam or SOMETHING
it actualyl works
It looks like the command t2scan -r should give you what you need.
From this forum post discussing signal issues: https://forums.raspberrypi.com/viewtopic.php?p=1845538&hilit=tv+hat+signal+strength#p1845538
Haha congratulations!! Nice job working through it when it was really messy!!!
haha I appreciate it, but honestly I'm just thrilled that you got it working! The "blinking and LED" part of electronics is so great, I'm glad you've got it 'blinking'
and right bang on time too!
yeah just about, gotta get data into real-time database and plot onto website using grafana
all in a days work
thank you so much man, really
❤️
Sweet! CO2 sensors are a joy, I hope you enjoy watching it's trends over time--they're surprisingly nifty! I'll have to look into grafana myself, it sounds interesting
cheers!
Alright 👍
were you able to test the smaller move speed/and moving left to right today?
Sorry for late reply but not yet
Hey, I want to make an arduino project that uses the RFID Scanner to open a specific tab in my browser, any suggestions on how to do it
well, when you say arduino project, you're using arduino C?
you could use usb hid to send key presses that open a website based on the readings of the rfid reader
I'm thinking of purchasing an oscilloscope but I'm just starting out so I can't justify a heavy investment. Found a really cheap vintage analogue oscilloscope (a Tektronix). Should I get it or is it a bad idea for a beginner?
what model is it? (Not because I have an opinion, but because I want know if my uni oscopes are what you're calling vintage)
I don't currently own an oscope. It's on my list of hardware to get, but I've gotten pretty far without one. What are you planning on using it for?
I wouldn't hesitate to call this vintage https://w140.com/tekwiki/wiki/453
Ah that definitely is vintage 😅
Really pretty too
I plan to use it for audio stuff so relatively low frequency I guess.
I'm currently borrowing one and it's been quite helpful not only for debugging but getting a better understanding for what is actually happening
To be clear im not borrowing that specific model. It's a more modern digital one
Nice, audio is a good use case. For a lot of folks I'd recommend a logic analyzer before an oscope, but in your use case I'd say it'd be helpful.
As to the vintage one specifically, hard to say. Honestly the capture mode on more modern scopes is a godsend. I also don't do any audio work so I don't know if an old one would help you feel around and get an idea of what's going on
What is capture mode? Is it related to the trigger stuff? I got a quick run down of it but didn't fully understand it.
Modern scopes: Rigol has a good benchtop scope at ~$400, there are some cheaper ones but I don't know about. Siglent is another brand I've heard folks recommend at similar price points (I see one at $279--you usually pay for speed so if you're on the low frequency range, which a lot of hobbies electronics are as well, you'll be fine with the lower end of the spectrum scopes)
There are handheld oscopes as well closer to the $100 range, good for on the go diagnostics, but I don't know any brands to go for and at that price point some scopes are really really cheap.
The adafruit discord might be a good place to ask, and the eevblog forum is another good place to scroll through--they have lots of threads on scope choice.
This is largely so you can put whatever that scope costs in comparison to other options, not to talk you out of it
and yeah, basically to capture a very specific signal, you can tell the scope to start capturing when it see the signal 'do a thing'. Then it holds the capture on the screen so you can see it
I'm just working with oscillators so it's the same signal repeating..I don't think I'll need any fancy features to observe that
The one I'm borrowing is actually a rigol
The vintage one is 50 bucks so yeah....extremely cheap.
My concerns are that it might not be calibrated or is generally difficult to service. But might be worth the gamble anyway.
Depending on your ability to sink a cost, it might be worth it. I'd buy it at that price just for how pretty it looks. It could be a nightmare to service, it could work within your needs
Yeah I could stomach a 50 dollar loss. My needs are currently quite simple so I think it'll work out.
(as an aside, $50 seems unusually cheap for that model, you'd probably need to put some work into it unless you've got solid advice that it does work)
Seller said they did a basic test and the waveform looked correct. I might be able to test it myself when I pick it up but I think I lack the skill to do any proper assessment
That's just the risk with buying used stuff
ha I lack the skill as well--I don't know what I'd check for
Thanks for your advice.I'm gonna try to get some more opinions tomorrow.
feel free to check around the adafruit discord as well--there's a lot more folks with oscope experience there
As an aside I've also been looking for a bench power supply but those seem to be scarcer in the used market
Yeah I should join that discord, thanks
benchtop power supply is my next larger hardware purchase. So far I've been cheating with 12v dc + various regulators.
Whatever you look at for power supplies, you should try to make sure it has a current limiter you can set
Is that to limit the amount of current drawn from the psu by whatever its hooked up to?
Bingo--it's a life saver if you slip up
I hadn't thought of that. That's sounds good to have
sometimes you fry things anyway, but it's a nice safety next when trying to test faulty hardware
In the short term I just need something that has both positive and negative voltage outputs
I saw something about hooking two batteries together but I dunno...
You can certainly do that, but as power levels change as the battery depletes it get's wonkier and wonkier. I'd bet it works at the beginning, but if something doesn't work or burns, you have to question and debug the powersupply on top of the circuit. Your time is valuable and new psu's are not that expensive comparatively so--I'd suggest just biting the bullet, any time lost debugging a circuit if power supply is a question will quickly add up to the cost of a power supply.
Power supplies for any project are one of the things (almost) I always make sure are over rated for their uses. For some things it means I have stupid boosters part way through but it's just a pain debugging a power driven bug (I think one of my sensors is either hitting a power bug or a timing bug and it's a nightmare guessing at the problem)
Yes... Today I learned the lesson slot making sure the basics are good
was it a magic blue smoke lesson?
My breadboard is defective and I wasted a lot of time on that...
Entire columns don't work.found out when I put the probe right on the IC and it was high when the board was all low
ooooof
I've cheaped out on breadboards my whole life--unplugging and replugging everything back in has become my 3 debug step
oh that's worse than I've ever dealt with
I got new ones coming tomorrow. It's bittersweet cause at least I know I'm not crazy
https://eater.net/breadboards
These are great as well, hopefully your new ones solve it for you
Funnily enough that is the exact one I ordered
Yeah I'm excited to get some progress finally
Cause this crap breadboard has wasted my time
congrats on identifying the issue though, it's not a easy one to notice
Well after staring at my circuit for 10 minutes I came to my senses and started checking the basics
It's like checking air fuel and spark on a car
haha that's pretty good time, i've lost a couple of days on it well after I knew the breadboard issue is common
I should make stickers for basic debugging milestones--breadboard is one, the correct pins/power rails is another, comms baudrate, etc
How about making sure power is actually on... Wasted more time than I'd like to admit on that one
I nearly wrote that one as well, but power rails was close. It really deserves to be it's own sticker though, you're right
hmm. the sticker idea is a really really good idea. it's a quirky way to suggest a debug checklist
Maybe not necessarily a sticker
Could just be a paper hung up on the wall
I might do that myself
or badges of some form. I'll have to mull it over a bit. I really like the idea though.
Regardless I should be getting some rest. In the meantime, check the other forums for more oscope insight, and I'd recommend buying a proper benchtop power supply rather than jury rigging it. If you contract your work, set your hourly rate and then see how many hours of debugging you need to do before a good power supply is worth it--it's quickly worth it in less than a workday and if it's not you're under valuing yourself. and look for one that has 'stable voltage' as a part of it's product specs
That is fantastic! Nicely done!
thank you man, so happy with it
No worries--when you get to play with it, be mindful of what to do if it is or isn't over the line, and if it has or hasn't moved left or right. At some point it'll have to move backwards, but a little wiggle right and left until is see's the line is probably going to be a good approach for now. Feel free to post your thoughts and questions as you work it out, it'll help us see where you are and suggest alternate approaches
That's fantastic to hear! When you've got the graphing side of it running please post an image here. I'd love to see it!
(Ok for now rest time for real)
yeah no worries, im gonna hopefully have it done in the next 10 hours or so
hopefully
👍
I’m thinking about setting up security cameras using something like raspberry pi’s what things should I know before buying and stating said project?
Price, processing speeds, advice...
just buy a camera kit on amazon. cheaper, you can return it etc
if you really wanna do it. gonna need to learn Arduino C, don't do it in micropython because theres more support on C. Gotta learn camera and how to operate them via code, capturing etc, figure which communication you want, wifi or bluetooth. set up a server/database to view video or create a host on the camera to log straight into it.
it definitely be fun but if yuo actually want security, just buy a kit
I was going to set up using cv with screen capture then either lan the data, to a local machine or to a web server maybe, what do you mean by a camera set, like a bunch of pis or something else?
Video capture*
currently trying to make an badusb with dbisus tutorial im trying to cahnge the keyboard layout to german im repalcing the files and chanign the code to german and then it doesnt work anymore and my pico isnt even recognized as hid anymore
How can I communicate with my su 200 plc over Ethernet with python
The substation controller?
No programmable logic controller
Siemens s7 200 plc
The SU200 model is sold as a substation controller
The s7 200 looks to be a different plc
so do you need the s7 or su?
If it's the s7 you'll need to follow the specs outline here: https://cache.industry.siemens.com/dl/files/582/1109582/att_22063/v1/s7200_system_manual_en-US.pdf
Ch7 goes over the network comm protocols
This is helpful for different keyboard layouts: https://github.com/Neradoc/Circuitpython_Keyboard_Layouts
It probably couldn't find the files in their folder
a pi+camera's work. It'll be a good amount of effort to get it working though, so if you just want security cameras there are cheaper and easier options out there. But if you want to learn about setting it up, have full control over the code, etc, a pi is a good option
I'm not sure if stuff like this is common, but I just saw this and I want one https://www.youtube.com/watch?v=ip641WmY4pA
Introducing the SmartKnob View: an open-source input device with software-configurable endstops, virtual detents, haptic touch feedback, and a round LCD.
Since you can't feel the detents through the video, make sure to turn up the volume so you can at least hear them, particularly the fine-grained detents toward the end of the video.
A brushle...
everyone wants this
Guys
Pls help
What's the difference between these 2 boards
I don't understand what are the pros or cons or difference between them.
I want to buy the first one. But idk the names don't match there's not much info about them (or I just can't find em)
All the YouTube vids are with the wroom 32
the second product has more digital pins