#microcontrollers

1 messages · Page 26 of 1

kind vault
#

Probably looking for an nfc/rfid reader and connect that up to a device that interacts over pcsc

#

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

lone plume
#

Gotcha, thank you. Those were the terms i was forgetting "RFID" and "NFC".

kind vault
#

Of course it gets much more complicated if you want to protect against malicious actors

lone plume
#

is there any specific microcontroller that I should be using? or would a rasberry pi work?

kind vault
#

Secure access systems is quite a large business haha

#

I'm not too familiar with the hardware involved that side of things unfortunately

lone plume
glass swift
#

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

steep dune
#

instructables .... some one has already done , what you want

hallow igloo
#

Server

unborn zodiac
#

is it possible to use pyfirmata to send mouse movements through my arduino leonardo? Like a mouse.move() equivalent in python.

raven drum
#

are we in the same class...

unborn zodiac
#

this isnt a class lol

#

just a project

#

i mean im not in a class

raven drum
#

oh i am making a drone

unborn zodiac
#

damn

unborn zodiac
#

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

raven drum
#

brilliant

steep dune
#

whats the latency from - control jiggle to drone wiggle

pliant moat
#

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.

neon nymph
#

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

bright iron
#

ahhhhhhhhhhhhhhhhhhhhhhbrainmon my pico brokebrainmon

rustic gorge
#

Lmaoo i rmbr trying to set up unix on my raspi

#

It was so slow

#

i couldnt even log in

unborn zodiac
#

How

unborn zodiac
next cliff
unborn zodiac
next cliff
unborn zodiac
#

Yeah it’s quite annoying, now I’m just making my own arduino code that just takes serial input for mouse movements and clicks

next cliff
solid valve
# unborn zodiac is it possible to use pyfirmata to send mouse movements through my arduino leona...

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...

▶ Play video
inland helm
#

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

kind latch
#

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

inland helm
#

for some reason no data was getting there though

#

trying to read it would just yield the loop

humble kraken
#

why do you need that redirect thing

#

baud rate needs to be the same on sending and listening software

abstract lotus
#

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

rancid lake
#

hey do you know any project with, esp32 micropython and websockets?

opal furnace
#

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.

rancid lake
gentle vapor
rancid lake
dire coral
#

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

brazen meadow
#

Depends on the project, can you elaborate on it a bit. It probably would be.

dire coral
#

Haven’t properly planned it out yet but effectively just automated watering, ph, nutrients sort of thing

brazen meadow
#

You could probably use a Pi Zero 2

dire coral
#

Is there any good way to determine how much computing power Id need? Or is it really just trial and error

next cliff
brazen meadow
#

What would you be computing?

dire coral
#

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

brazen meadow
#

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.

dire coral
#

I might get both then, pi4 could always be used for other projects

dire coral
#

Is this worth the money?

brazen meadow
#

All of parts cost about that much. I would go with a 4G if you can get one.

dire coral
#

Out of stock everywhere at the minute, no info on when they’ll be back as far as I can tell

errant wigeon
ashen cloak
#

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.

hallow igloo
#

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

hasty zealotBOT
#

: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).

hasty zealotBOT
#

: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).

tranquil robin
#

Know someone a good microcontroller suitcase for beginners and that I can buy online

ionic torrent
#

arduino vs raspberry pi to learn linux....

rancid lake
#

Although you cold learn with a Virtual Machine

steep dune
#

i dont know about virtual machines - im staying inside PY3 ( python 3 ) world , i would like to run virtual , microcontroller chips , is it possible

errant wigeon
# steep dune i dont know about virtual machines - im staying inside PY3 ( python 3 ) world ,...

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/

steep dune
#

virtual / emulate ?

#

ohhhhhhhhhh neato link

steep dune
#

can micro python fit / work on a ESP8266 ?

errant wigeon
steep dune
#

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 ??

errant wigeon
#

unless you're trying to do lots of things very quickly, you won't need to worry about it

steep dune
#

mmmm - just GPIO interfacing

errant wigeon
#

then you should be good, the docs describe what it can do

steep dune
#

very cool

tranquil robin
errant wigeon
#

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?

tranquil robin
#

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

errant wigeon
#

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)

errant wigeon
# tranquil robin It can be something different than a suitcase I'm actually learning assembly in...

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

tranquil robin
neon nymph
#

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.)

fiery sigil
#

It totally depends on what framework or library you are using

dire coral
#

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?

fiery sigil
#

Um different case? Or use USB boot with an SSD and enjoy 10x better perf and reliability

dire coral
#

It’s the official case unfortunately, just jammed it in and it worked

hallow igloo
#

Hi everyone, I need to send data between Arduino and Raspberry pi using SPI communication how do I do that ?

heavy saffron
#

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.

dry fulcrum
frail scroll
#

is it good to use asyncio for camera?

#

gonna use it for raspberry pi

#

and will be running 24/7

rigid tangle
#

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.

uncut sequoia
#

have any of y'all worked in multisim

rain dragon
#

it was basic stuff

sage urchin
#

Any one has good ressources on running a firmware update server for Over The Air updates with an ESP32 board?

humble kraken
#

could look at how some popular IOT frameworks do it like tasmota / esphome / espurna

woven marsh
#

I am doing project based on openCV and GUI can anyone help

past plover
#

Hii

#

I am new in iOT

#

Can someone suggest me how to subscribe server attributes in arduino software. esp8266

quasi junco
#

any boady in vr career

errant wigeon
steep dune
#

is there a OS version for a RP3B+ that has a pre-compiled OpenCV ?

errant wigeon
#

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?

steep dune
#

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

errant wigeon
#

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

steep dune
#

well - i always consider asking here , because you can save me 6 months

#

of - general nonsense , mish mash , self-delusion .... izz itzz ok dokey

errant wigeon
#

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

steep dune
#

i see the logic in your explanation , i can borrow a wheel , not re-invent it ....... ha

drifting fiber
#

Hello, does anyone know CharLCD for raspberry pi 4?

light ivy
#

Aren't lower level languages better to program microcontrollers because they are faster for the processor?

steep dune
#

yes - native ASM always the fastest

dry fulcrum
sleek hollow
steep dune
#

mmmm machine code ( ASM ) , very fast

#

ya C is my nemisis for now

tired schooner
#

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

dry fulcrum
tired schooner
#

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

dry fulcrum
tired schooner
#

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

tired schooner
#

Never done that, I’ve found the Bluetooth libs, sure, but how to use them and what RFCOMM stands for is yet to discover :/

chrome orbit
#

sub for my git

#

pls

#

zrxpty

#

UwU

hallow igloo
#

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’.”

errant wigeon
#

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.

hallow igloo
#

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

errant wigeon
#

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?

hallow igloo
#

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

hallow igloo
#

I can link u the post if u want

errant wigeon
#

I appreciate it, but no thank you. I'm also getting "this is shady" vibes, and I'm not comfortable helping further with this.

hallow igloo
harsh zinc
#

that was a tragic conversation

hallow igloo
#

can i make a discord bot host (using nextcord) with a esp32?

jaunty lichen
#

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?

pure radish
#

@dreamy rover

dreamy rover
#

is this the one channel made by samuel dietz

#

??

errant wigeon
hallow igloo
#

hmmm ok ty

frigid spruce
#

So you can have better freedom if you go into low level rather than high level.

#

But the complexity will be higher in there.

sullen geode
#

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?

copper umbra
#

@sullen geode whit 107 k factor you mean 107,000 * liters *minute?

delicate knoll
errant wigeon
solemn flint
#

Well that wasn't technically spamming

#

But ok

#

I'm just trying to get 50 message ASAP

#

Ah

#

I'm text in general ig

weak basin
#

!tvmute @solemn flint 7d Don't spam to get voice-verified

hasty zealotBOT
#

:incoming_envelope: :ok_hand: applied voice mute to @solemn flint until <t:1649685097:f> (6 days and 23 hours).

weak basin
# solemn flint 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 .

dawn dock
#

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?

knotty pewter
dawn dock
#

thx for the suggestion anyways

knotty pewter
#

Yeah. Not sure what else to suggest. have you tried sending just a couple of bytes? 0x5A5A might show something.

dawn dock
#

Well it did show something new, the error now names 0xfb as the faulty start byte instead of 0xff

errant wigeon
#

What version of python are both using?

dawn dock
#

The pi is 3.9.2, laptop 3.10.2

errant wigeon
dawn dock
#

I already use a.encode(), but I'm going to try adding the strip() your stackoverflow mentioned

errant wigeon
#

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

dawn dock
#

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())

hallow igloo
#

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

gentle vapor
#

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)

junior spear
#

i got a basically unused rasberry pi, what should i so with it?

#

(4 gb)

trim granite
#

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?

errant wigeon
trim granite
#

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

dry fulcrum
#

what sort of sensor is it?

trim granite
#

gyroscope

errant wigeon
#

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

dry fulcrum
errant wigeon
#

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

trim granite
#

but a lot less blurry

#

wait no

#

That's not true

#

The lower one is the most like the gyroscope output

errant wigeon
#

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

trim granite
#

But I'll look into the butterworth filter

errant wigeon
#

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

deft dune
#

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 🙂

errant wigeon
#

are you building or installing from a wheel?

deft dune
#

no for the sorce becouse i use 3.8

errant wigeon
deft dune
#

the cloned tensorflow reposiroty

errant wigeon
#

Are you building on the pi itself? or building it on a computer and putting it on the pi?

deft dune
#

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??

errant wigeon
#

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

deft dune
#

ahh oke i put 2 90mm fans for better airflow

errant wigeon
deft dune
#

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)

errant wigeon
#

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

junior spear
#

please dear god help

hallow igloo
hallow igloo
#

NOOOOOO

#

DONT DO THAT

#

send it to me instead 😎

junior spear
hallow igloo
hallow igloo
#

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

dry fulcrum
errant wigeon
junior spear
errant wigeon
#

which connection did you use to plug the camera in? Are you sure that you used the camera and not the display connection?

junior spear
errant wigeon
#

The usb c connector or the usb 3.0 ports?

junior spear
errant wigeon
#

Cool, that's the correct one then

junior spear
#

damn

errant wigeon
#

Try unplugging and plugging back in the camera

junior spear
#

ALREADY DID THAT

#

caps

#

sorry

errant wigeon
#

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?

junior spear
#

tried changing resolution btw

errant wigeon
#

Ok, what else have you already tried so I don't rehash it?

junior spear
#

uhh resnalling the display packages

errant wigeon
#

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

junior spear
#

k, would u mind if i finish this game? ill ping u onc eive done this

errant wigeon
#

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

junior spear
#

k

junior spear
#

@errant wigeon back, trying it rn

muted depot
#

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.

junior spear
#

anyone else got any ideas? 😭

junior spear
#

@errant wigeon sorry for ping man, u back? im despreate idk what to do 😭

worn sinew
#

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)

steep lotus
#

Hi, I have a probleme whit an esp32 with micropython on Pymakr on VS Code

#

this is my code :

hasty zealotBOT
steep lotus
#
from position import *

def moveDiceTo(position1, position2):
    position(position1)
    fermerPince()
    utime.sleep(0.5)
    position(position2)
    ouvrirPince()
    utime.sleep(0.5)

moveDiceTo(1, 2)```
#

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

steep lotus
#

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

gentle vapor
#

ok cool 🙂

austere tulip
#

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.

junior spear
ancient stump
#

I need help

#

How to upload a adc controller or rom controller code (PYTHON) in Arduino

glossy mantle
#

how do i get started with microcontroller in python, just ping please

austere tulip
junior spear
errant wigeon
# junior spear 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

errant wigeon
junior spear
steep dune
#

i used to have a avatar pic - it was a glorious BBQ steak ....

#

but yours is raw.........BBQ season

junior spear
#

ok so fuck, the whole thing is fucked. gotta reflash the hard drive

junior spear
#

please help i cant seem to connect, nither local or ip works. please help, yes i have ssh file in the storage

shy flint
#

whats the best micro-controller ?

shy flint
#

knock knock anyone here ?

near drift
steep dune
#

such a big question

hallow igloo
#

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

errant wigeon
#

(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)

hallow igloo
oblique wyvern
#

If you have a problem with a program, project and more I wil help you. PM me.

wispy knoll
#

Hey there

#

How can I program an arduino with python?

hallow igloo
fallen anchor
#

Hey need help with RPi

#

This displays after booting up

delicate knoll
#

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?

delicate knoll
#

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?

delicate knoll
#

@quartz remnant thanks, but as i said, the site gives me Access Denied

quartz remnant
#

weird either your IP is blocked or if you are young it got blocked because children safety

delicate knoll
#

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

quartz remnant
#

no problem

delicate knoll
#

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

hasty zealotBOT
#

Hey @delicate knoll!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

wispy knoll
#

That's why I asked.

gentle vapor
#

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).
lethal snow
#

It is possible to make MicroPython modules (for example machine) visible in Visual Studio Code?

gentle vapor
spiral sandal
#

iirc they do not have parameters

gentle vapor
#

ooof not super useful then !

#

I mean, mildly useful still but...

spiral sandal
delicate knoll
ancient stump
#

Someone help me

#

How to use micropython on Arduino

#

I downloaded [MP] Micro Python, btw idk how to use it

#

someone please help me

gentle vapor
spiral sandal
#

Eric IDE has also micropython support now ( though i did not test )

delicate knoll
#

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
delicate knoll
#

there is something that can decode the register dump ?

#

A5 is 0x00000000, can that be some kind of "null pointer equivalent" or something ?

delicate knoll
#

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

next charm
#

heyy

#

someone please help me in programming Arduino using Python

#

I downloaded micropython, btw Idk how to use tht

#

it is just github libs

errant wigeon
gentle vapor
#

somebody write a comprehensive article on "programming Arduino using Python" in all possible sense !

#

by the way I just discovered that "OpenMV editor"

errant wigeon
gentle vapor
#

yeah

#

(nobody reads pinned comments of course, but at least they can be pointed to)

errant wigeon
#

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/

errant wigeon
gentle vapor
#

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")

errant wigeon
#

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

gentle vapor
#

oh characters limit !

#

it's just called Snek, so that's -4 😉

errant wigeon
#

Woo! So much room for clarification!

gentle vapor
#

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)

errant wigeon
#

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

errant wigeon
gentle vapor
#

no, I have no idea how it is

errant wigeon
#

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!

gentle vapor
#

thank you for doing it 👍

next charm
#

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

errant wigeon
karmic depot
normal hare
#

next charm
#

??

hallow igloo
#

Look what arrived

steep dune
#

openzz its , openzz itzz

fickle lodge
next charm
fickle lodge
#

But we didn't study it and i need to do it soon

errant wigeon
#

can you link the controller library?

fickle lodge
errant wigeon
#

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

fickle lodge
#

me to

#

i didn't find anything abt it

#

and i didn't study it in uni

errant wigeon
fickle lodge
errant wigeon
fickle lodge
#

e

#

but ill try

karmic depot
latent marlin
#

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.

gentle vapor
latent marlin
#

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...

spiral sandal
latent marlin
#

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

spiral sandal
#

the pyserial module is usually good for that

latent marlin
#

cheers, I'll take a look

hasty zealotBOT
#

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.

delicate knoll
#

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 ?

dry fulcrum
delicate knoll
#

WHO_AM_I @dry fulcrum

dry fulcrum
hasty zealotBOT
#

Hey @fickle lodge!

You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.

hasty zealotBOT
vivid pebble
#

hello to who ever is online

young nova
#

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?

spiral sandal
#

the pyserial module is usually good for that

gentle vapor
#

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

jaunty lichen
#

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?

spiral sandal
jaunty lichen
#

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.

errant wigeon
#

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)

jaunty lichen
#

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.

loud lance
#

Actually I found a way to connect arduino with python it is very interesting. I did it using the serial module in python

jaunty lichen
#

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.

gentle vapor
#

that would have its own way of programming it, like I assume its own host software/framework

jaunty lichen
#

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.

gentle vapor
#

ah that's all Midi stuff

jaunty lichen
#

yeah ... it's midi...

gentle vapor
#

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

jaunty lichen
#

Okay, thanks for the tips! I'll be looking into macropads.

loud lance
# gentle vapor I saw it used midi, and so programming it goes through midi too

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...

▶ Play video
steep dune
#

thats nifty !!

chrome sapphire
gentle vapor
full bane
#

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.

dry fulcrum
full bane
rose ermine
#

Hi, is there a way to emulate a raspberry pi, with the equivalent "processing power" on a desktop pc?

spiral sandal
#

and calibrate for your pc

rose ermine
#

Awesome, I will have a look

Thanks

rotund bear
#

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

thorn brook
#

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 ??

spiral sandal
gentle vapor
#

oh interesting, can you show your code ?

thorn brook
gentle vapor
#

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

gentle vapor
# thorn brook https://pastebin.com/pqKzBWg1

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
thorn brook
#

this can reduce ram usage for the calculator ?

gentle vapor
#

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

thorn brook
#

the error appears instantly when i start the script

gentle vapor
#

hmmm

thorn brook
#

it's just i didin't know how to use "while true:" and "return"

gentle vapor
#

I'm a little surprised that it would be too big a code, but it's a small chip...

hasty zealotBOT
gentle vapor
#

ah oops

thorn brook
#

It's working 😄

#

Thanks a lot !

topaz sedge
#

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

keen wyvern
#

hi

topaz sedge
#

hey guys do u know how to put your code in the .aab format ?

thin wyvern
#

anyone familiar with pyserial?

mighty pine
#

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?

white spade
#

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?

hallow igloo
#

You can search in pkgs.org the missing packages

#

Download the arm64 packages

undone sapphire
#

what microcontrollers are best suited for python?

gentle vapor
little swallow
#

What can i do python with Arduino?

errant wigeon
hushed granite
#

Does anyone have experience with FIR sensors?

errant wigeon
#

I don't but if you explain your use-case or question someone else here might be able to offer help

hushed granite
hasty zealotBOT
#

: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).

hallow igloo
#

@past epoch

#

oh hes muted

#

he was sending a bunch of hard rs

#

Hard Rs

errant wigeon
# hushed granite Well, the question would have been what use cases are there and what any advice ...

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

hushed granite
errant wigeon
#

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

timber ferry
#

hellooo

#

i was wondering if anyone will be willing to tell me something about esp boards

#

like esp32

errant wigeon
boreal creek
#

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

steel torrent
# boreal creek Hey guy, i'm new to computer science so i ahve a qestion about arduino and embed...

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
warm bane
#

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

hallow igloo
#

stark jasper
#

Which fundamentals do I need to know for output to electric motor

#

and for input

#

Simply what I need to learn for robotics

wooden dagger
#

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.

timber ferry
#

I can use Arduino and micro python btw

wooden dagger
#

and cheaper 🤑

timber ferry
#

I got some python script that I'd like it to use.

#

It's gonna use the esp 8266 chip I guess

hot timber
#

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.

timber ferry
#

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

hot timber
#

I don't think that's the way the teacher intended me to do it though

errant wigeon
hot timber
#

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

errant wigeon
errant wigeon
# timber ferry Esp32 yeah I think I'm gonna use that but I'm really not sure about if it needs ...

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

hot timber
errant wigeon
#

can the wheels move individually?
And can you read the sensor input that helps tell you where the line is?

hot timber
#

Is it like the reflection values?

#

Oh yea I can read them

errant wigeon
#

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?

hot timber
#

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

errant wigeon
hot timber
#

I mean like it goes off-course completely

#

after a while

errant wigeon
#

ok what point does it go crazy?

hot timber
#

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

errant wigeon
#

ok, so let's take a step back
How quickly does it move?

hot timber
#

50

#

robot.drive_time(50, 25, 300)

errant wigeon
#

let's make the robot a lot slower (I don't know what 50 means in this case, but let's try 5 instead)

hot timber
#

im pre sure it means 50mm

#

Let me check again

#

yea it means 50mm

errant wigeon
#

Let's set it to 5, that way we don't drive over everything in one iteration

hot timber
#

Alright

#

I can't actually test the robot currently as well sorry

errant wigeon
#

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

hot timber
#

Here's a visual representation

errant wigeon
#

So the first suggested change is to go really slow--got a guess as to why?

hot timber
#

So it doesn't go over the black line too quickly

errant wigeon
#

nice, yup that's what I'm hoping it helps with!

hot timber
#

There are marks for time but for now it shouldn't matter too much haha

errant wigeon
#

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

hot timber
#

I see

#

Currently when it detects a black line, it moves 25 degrees per second

errant wigeon
#

so how does the color sensor work, is it a single color sensor, or do you have a couple of sensors together?

hot timber
#

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

errant wigeon
#

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?

hot timber
#

it should move clockwise and forwards

#

Wait I think i misinterpreted the question

errant wigeon
#

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

hot timber
#

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

errant wigeon
#

ok, so how do we turn left until we either turn too far, or find the line?

hot timber
#

robot.drive(5, -x) when the colour_sensor.reflection() > 12 -> Detects white
robot.drive(5, x) when colour_sensor.reflection() < 12 -> Detects black

errant wigeon
#

In that case, what is x and -x?

#

And sorry, I'll probably have to step away for the rest of the night shortly

hot timber
#

Probably will take some trial and error

lone venture
#

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

muted cedar
#

hey guys am working on a flame sensor with nodemcu need help

hallow igloo
#

Is there a way to record the signal strength from a HDTV antenna?

errant wigeon
# hot timber Probably will take some trial and error

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

errant wigeon
# lone venture here my set up

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

lone venture
errant wigeon
#

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?

hallow igloo
lone venture
#

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

hallow igloo
#

whats C lol

lone venture
#

Don’t worry about it 🤣

errant wigeon
# hallow igloo whats C lol

It's a programming language, it's related to Mr.Fox's question though so you don't need to worry about that one

errant wigeon
hallow igloo
#

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

errant wigeon
lone venture
#

Well this is interesting

lone venture
#

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

hallow igloo
#

i have a Raspberry Pi TV HAT.

errant wigeon
hallow igloo
#

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

errant wigeon
lone venture
#

lora is a MUST, its a communication thesis paper

errant wigeon
#

What is the error for the comms?

lone venture
#

oh god depends on the library and board

errant wigeon
#

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

lone venture
#

okay heres a radical idea, can i have both running

#

python and c

errant wigeon
errant wigeon
# lone venture python and c

Ok, I am a bit confused about your setup.
The part you showed me I assume is the sensor and transmitter, is that correct?

lone venture
#

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

errant wigeon
#

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?

lone venture
#

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

hallow igloo
lone venture
#

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

errant wigeon
#

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

lone venture
#

in python, i have it down to a T. works ok in python

errant wigeon
#

ah ok so if we could read a sensor, we could transmit it easily?

lone venture
#

exactly

#

just need to read uart ports in micropython

errant wigeon
#

Ok cool, that will make this easier.
Now are you sure the pin it's connected to is a UART capable pin?

lone venture
#

yep, tx and rx in reverse relative to the sensors

errant wigeon
#

are you using tx0 or tx1

lone venture
#

tx1, the t0 is a bit weird on the board

#

its labelled rest and idk

#

so ima use tx1

errant wigeon
#

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)

lone venture
#

ahhhh that makes sense

#

happened on a generic esp32, was driving me up the wall

errant wigeon
#

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

errant wigeon
#

Bugs like that are annoying, but part of how it goes

lone venture
#

haha yeah the most insignificant bugs cause the worst headaches

lone venture
#

i have this so far

#

as far as im aware, the uart.write is used to alert the sensor and fetch readings?

errant wigeon
#

sweet--one last cheat is to look for that sensor paired with the raspberry pi

lone venture
errant wigeon
#

Hmm

lone venture
errant wigeon
#

is the co2 sensor connected to 5v?

lone venture
#

no, 3v3

errant wigeon
#

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

lone venture
#

The datasheet says operating voltage 3v3 or 5v, and i have a working version using 3v3

errant wigeon
#

sleep for a second between lines 5 and 6

lone venture
#

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

errant wigeon
#

haha no, I enjoy trying help

#

thank you though

lone venture
#

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

lone venture
errant wigeon
#

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

lone venture
#

alright no worries, @ me when you back. ill keep cracking on with this

errant wigeon
#

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

lone venture
#

i always get confused with that part

errant wigeon
#

oof. I'm not overly familiar with micropython--give me a moment to see how it declares pins

lone venture
#

no worries take your time

errant wigeon
#

tx=machine.Pin(3) I think is the syntax you'll need

lone venture
#

how do i put this in, in conjunction with the previous line?

errant wigeon
# lone venture

uart = UART(1, baudrate=9600, bits=8, parity=None, stop=1, tx=tx, rx=rx)

lone venture
errant wigeon
#

Well darn your initial code follows the docs, well done but damn now we have to bug hunt more

lone venture
#

haha yeah well im stumbling through it too, im gonna tear up if i see values pouring in haha

errant wigeon
#

The CO2 sensor definitely works?

lone venture
#

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

placid falcon
#

the sensor will work fine but I thing you have to import it's library

lone venture
#

spent 2 days lookin

errant wigeon
#

Micropython has a ton built in, that helps with a ton of it. Then for c you explicitly add all of the files

placid falcon
#

I was talking about Arduino C Lang code

#

ohhhh

lone venture
placid falcon
#

you guys are working on python

placid falcon
#

sorry to interrupt

lone venture
#

you'er alright dude, dw

placid falcon
lone venture
#

heres where im at

errant wigeon
#

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

lone venture
lone venture
#

thats a great idea

errant wigeon
#

yeah, it won't actually be a short because you're just connecting an rx and a tx

lone venture
#

yeah yeah short to me is like connectting ends without middle

#

1 sec

#

still nothing

errant wigeon
#

I mean you're technically right there, but usually I call it a short if something goes straight to ground

errant wigeon
lone venture
#

honestly, never thought of doing that. pretty smart

errant wigeon
#

I've got enough all nighters caused by issues like this behind me

#

ok, so are you sleeping between write and read?

lone venture
#

no, 1second?

#

wooo

errant wigeon
lone venture
#

relpied

#

replied

errant wigeon
#

woo!

lone venture
#

alright sweet, sensor back?

errant wigeon
#

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

lone venture
#

😭

#

it works but hex numbers

errant wigeon
#

WOO!!!

#

Congrats!!!

lone venture
#

IKR

#

omg

#

all this time

errant wigeon
#

That is a simple thing to manage

lone venture
#

and it took like 8 lines of code

errant wigeon
#

it was honestly probably just a wire issue

#

plus needing to sleep for 1 second between write and read

lone venture
#

it was the sleep i think

#

would you have time to figure out the display?

#

its all good if not

errant wigeon
#

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

lone venture
#

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

errant wigeon
#

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

lone venture
#

PAYLOAD RECIVIED

errant wigeon
#

WOOO!!!! Congratulations!!!!

lone venture
#

ohhhh thats how, christ ive been messing about with '''cpp trying to do it lul

errant wigeon
#

It's a bit confusing but yeah that's how it works. BUT CONGRATULATIONS!! The screen is now a minor part.

lone venture
#

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'

errant wigeon
#

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

lone venture
#

cost optimisation?? those screens cost me 3 bucks!

#

so cheap, unbelievable

errant wigeon
#

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

lone venture
#

ahhhh businessman i like it

#

alright so i have some sources for the screen

#

lemme find it, i did sort of give up ngl

#

skip to like 10mins in

errant wigeon
#

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

lone venture
#

ok, ima disconnect the co2 n everything

errant wigeon
lone venture
#

oh hell yeah, thank you dude

lone venture
errant wigeon
#

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())

lone venture
#

ok doki

lone venture
#

that might not give you context, one secnd

errant wigeon
#

that means the i2c scan turned nothing up

lone venture
#

ok maybe it did give you context 🤣

errant wigeon
#

wait, was the print statement commented out when you got the error?

lone venture
#

no no

#

i did that for debugging

errant wigeon
#

ah ok lol, I got really confused how it would throw and error as a comment

lone venture
#

haha compilers never wrong

#

im 99% sure everythings connected correctly

errant wigeon
#

The baudrate is wrong

lone venture
#

9600?

errant wigeon
#

nope, for this one we're going to need baudrate=200000

lone venture
#

still nothing

#

swapped the display for another, just in case, no difference

errant wigeon
#

can you show me a picture of the pins it's connected to?

lone venture
#

of coure

lone venture
errant wigeon
#

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

lone venture
#

i got it

errant wigeon
#

is it powered?

#

oh?

lone venture
#

no screen but scan came back

#

0x3C

errant wigeon
#

Woo!

lone venture
#

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.

errant wigeon
#

Thanks but I don't accept friend requests from these servers. I appreciate it though!

lone venture
#

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

errant wigeon
#

Haha congratulations!! Nice job working through it when it was really messy!!!

errant wigeon
#

and right bang on time too!

lone venture
#

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

#

❤️

errant wigeon
#

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!

errant wigeon
hot timber
frank bough
#

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

lone venture
gentle vapor
#

you could use usb hid to send key presses that open a website based on the readings of the rfid reader

acoustic leaf
#

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?

errant wigeon
acoustic leaf
errant wigeon
#

Ah that definitely is vintage 😅
Really pretty too

acoustic leaf
#

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

errant wigeon
#

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

acoustic leaf
#

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.

errant wigeon
#

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

acoustic leaf
#

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.

errant wigeon
#

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

acoustic leaf
#

Yeah I could stomach a 50 dollar loss. My needs are currently quite simple so I think it'll work out.

errant wigeon
#

(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)

acoustic leaf
#

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

errant wigeon
#

ha I lack the skill as well--I don't know what I'd check for

acoustic leaf
#

Thanks for your advice.I'm gonna try to get some more opinions tomorrow.

errant wigeon
#

feel free to check around the adafruit discord as well--there's a lot more folks with oscope experience there

acoustic leaf
#

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

errant wigeon
#

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

acoustic leaf
#

Is that to limit the amount of current drawn from the psu by whatever its hooked up to?

errant wigeon
#

Bingo--it's a life saver if you slip up

acoustic leaf
#

I hadn't thought of that. That's sounds good to have

errant wigeon
#

sometimes you fry things anyway, but it's a nice safety next when trying to test faulty hardware

acoustic leaf
#

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...

errant wigeon
#

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)

acoustic leaf
#

Yes... Today I learned the lesson slot making sure the basics are good

errant wigeon
#

was it a magic blue smoke lesson?

acoustic leaf
#

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

errant wigeon
#

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

acoustic leaf
#

I got new ones coming tomorrow. It's bittersweet cause at least I know I'm not crazy

errant wigeon
acoustic leaf
#

Funnily enough that is the exact one I ordered

errant wigeon
#

hot dog

#

that's a great thing to hear

acoustic leaf
#

Yeah I'm excited to get some progress finally

#

Cause this crap breadboard has wasted my time

errant wigeon
#

congrats on identifying the issue though, it's not a easy one to notice

acoustic leaf
#

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

errant wigeon
#

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

acoustic leaf
#

How about making sure power is actually on... Wasted more time than I'd like to admit on that one

errant wigeon
#

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

acoustic leaf
#

Maybe not necessarily a sticker

#

Could just be a paper hung up on the wall

#

I might do that myself

errant wigeon
#

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

lone venture
#

@errant wigeon

#

You the man

errant wigeon
#

That is fantastic! Nicely done!

lone venture
#

thank you man, so happy with it

errant wigeon
# hot timber Sorry for late reply but not yet

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

errant wigeon
#

(Ok for now rest time for real)

lone venture
#

yeah no worries, im gonna hopefully have it done in the next 10 hours or so

#

hopefully

left oasis
#

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...

lone venture
#

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

left oasis
#

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*

boreal stratus
#

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

cyan haven
#

How can I communicate with my su 200 plc over Ethernet with python

errant wigeon
cyan haven
#

Siemens s7 200 plc

errant wigeon
#

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?

errant wigeon
boreal stratus
#

I got i fixed now

#

I had to put the files in root

#

Idk why that worked though

errant wigeon
#

It probably couldn't find the files in their folder

errant wigeon
onyx glade
#

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...

▶ Play video
timber ferry
#

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

hallow igloo
#

the second product has more digital pins