#help-with-projects

1 messages · Page 4 of 1

cloud acorn
#

Sort of, I can grab one, but I've started desoldering because I was clearly not doing something right

#

Eh, I did more desoldering last night than I thought I did, so it doesn't look like anything except messy solder and flux. I am going to try again tonight and grab a picture

lethal prairie
#

I'm using the st7789 rounded rectangle display in a project and getting a fair amount of tearing. Wondering if there is an available display that exposes the TE tearing effect line. The only display could find from adafruit with the TE line broken out was out of stock

buoyant jackal
silent thicket
#

Hey folks, less a project question and more searching for tips n tricks
When it comes to soldering single ended LED filament, anyone have advice on getting good clean connections? I've been able to do it but keeping those little contacts from shorting is a real bear

blazing vortex
buoyant jackal
buoyant jackal
stiff scroll
#

Are there any good resources for driving multiple small oled displays? I'm curious about best practices on the hardware and software side - mainly interested in creating interfaces similar to a lot of digital synthesizers that have individual displays for parameters and such

willow badge
#

Hi! I'm working on a project where I'd like to make a circuit to have a momentary switch behave like a latching switch. I have found a couple of example circuits that use inverters (or NAND gates with inputs wired together) to achieve this. However, the city I live in does not have an electronics parts store so I have been trying to mock up my circuit in tina-ti to make sure it works and what components I need before I order the components. The issue I have is with the syntax(?) of mocking up the circuit -- I can make something that looks right, but the DC voltage reader just returns an error. I know it's somewhat software-specific, is that something I can still get help with here? Is there a different simulation software I should be using instead? Thanks!

red panther
fleet terrace
red panther
#

Are SPI OLED displays common? The cheap two-color ones I’ve seen are all I2C. They do make such a thing as an I2C mux, if you’re ok with the slowdown of multiplexing four displays on a single bus.

buoyant jackal
cloud acorn
#

Is it possible to to use one of these terminal blocks - https://www.adafruit.com/product/725 in place of a USB A on the powerboost 1000C - https://www.adafruit.com/product/2465 for a project with addressable LEDs? the USB A male and female sides are taking up too much room in the project, so I'd like to try to slim down the connection. Im just not sure if its possible.

buoyant jackal
#

the ones you pointed to have wider spacing

cloud acorn
# buoyant jackal the ones you pointed to have wider spacing

Thank you! Is there any resource or a guide on where these connect in place of USB? Since it looks like the pins don't connect the same way as USB does. This is my first time working with a PCB and soldering anything, sorry if it's not as obvious to me as it should be, still learning.

buoyant jackal
#

The schematic shows that the USB connectors are connected to some of the same pins as the 8 pins in a row on the long edge of the board (and also the JST battery connector)

#

you could just solder to the pin holes, but using screw terminals makes for better maintainability

#

read our guides on soldering if you have not done so yet

#

use solder for electronic purposes. DON'T use plumbing solder

cloud acorn
#

I actually did use some of your guides on soldering, and had some success with soldering the USB to the PB1000C, it was my first time soldering, thanks for that! It looks like I might have to do a little more research on this, it's a little foreign to me but I can probably figure it out 🙂

#

trying to figure out a schematic for a brand new maker like myself is a little intimidating

buoyant jackal
willow badge
# red panther What do you have to work with? Relays? BJT transistor? I’ve never used tina-ti, ...

Hi, sorry for the late reply. It's just some inverters and capacitors, and a transistor on the output. Here are the circuits I'm basing it off of. It may be that I just don't understand how simulating this kind of circuit works, but it seems like there's nowhere to put vcc when simulating it, other than on the chip vcc itself which there isn't an input for in the simulator? Same in Falstad from what I can tell. Am I just going about the simulation in the wrong way?

tacit vessel
#

hi! i was wondering if anyone here is familiar with touch designer. I am currently taking an intro class at uni that centers our curriculum around touch designer. I had an idea for a project that uses ardunio with touch designer but I am not exactly sure how to combine the two. I want to use the webcam input feed as an sensor that detects where a person is standing on an x,y axis and then sends that data to the arduino. The ardunio will then control two servos that move 3d printed eyes in the person's general direction.

I've watched a few youtube videos on getting ardunio connected to touch designer using the serial port but I am still unfamilar with touchdesigner and my prof doesn't know much about ardunio

red panther
willow badge
red panther
#

Button toggle latch

static mist
#

What is the most straightforward hardware configuration to stream video over wifi with an esp32-s3? One of the OV5640 Camera Breakouts? Would it be better to get a raspi camera module and get a pico or zero instead?

red panther
#

I haven't tried the ESP-CAM yet. I wouldn't expect the ESP32 to support h264, but some cameras provide the image already in jpeg so you could stream it as mjpeg pretty naturally

#

The frame rate test was surprising. It could be that the OV2640 uses a higher compression of JPEG and thus smaller files are being transferred.

static mist
upper bloom
remote raft
#

Is there anyway to have the dome cover to sync the parallel motion linkage motion?

I have a single micro servo that drives the plate.

When the top plate moves up I'd like it the cover to open, and when it closes, it should also close.

I have placed 3 rods, 2 on the moving pivot points for the plate and 1 on the bottom.

red panther
#

Another gear alternative is the crossed belt

remote raft
#

Do I have to change my parallel 4 bar to crossed then?

red panther
#

Though you might not like the space constraints

#

Do you have Lego technics or an erector set or something you can model with?

remote raft
#

Yea was always concerned about the limited space.

No I don't have any of that. This one was first modeled by printer paper I shaped and taped up.

red panther
#

Hmm. That makes it harder. Printer paper doesn’t do well in compression. Something stiffer like cardstock or cereal box cardboard would be better

remote raft
#

I have cardboard boxes laying around that I use

red panther
#

Go ahead and try some things. It could be that a single linkage from the plate to the lid is sufficient

#

In my mind it seems to bind when the lid is all the way down

remote raft
#

Thought I had cardboard boxes but all of them are used up. I guess I'll make do with the printer paper then until I find something else

remote raft
red panther
remote raft
red panther
ebon apex
#

No, it was connected directly to the primary pcb :/

remote raft
red panther
#

Nice work!

humble sinew
#

I'm using a TIP120 transistor to switch a 12V 500mA light strip on and off. it gets super hot and I'm worried I'm going to burn my house down... Is something wrong or is this normal?

#

It fades in and out with PWM, connected to my ItsyBitsy with a 1k resistor.

slender tendon
#

what's the simplest available off-the-shelf chip/breakout to drive a common 12v or 24v LED strip from a microcontroller? I didn't know the exact power requirements yet, but need relatively diffuse light intensity comparable to full daylight within an enclosure with volume around a cubic foot and dimming either manually with PWM or via variable current

#

I'm looking at this driver, but wondering if there's something similar that will take 12v or 24v directly

buoyant jackal
slender tendon
unborn grotto
#

quick question, but is this totally busted? :( i wanted to see if id be able to fix this before having to buy a new one, does anyone know if thats possible?

buoyant jackal
unborn grotto
#

hmm, would you be able to elaborate a bit more on that? i don't see how it could be the first two so it might be a wiring issue

#

it was working fine earlier last week but i installed it in a cosplay i had spraypainted earlier on tuesday, i thought it would be ok to put it in on friday, but when i came back home it started doing this when i plugged it back in

buoyant jackal
#

Eating… I’ll be back. List the exact part numbers and what software you are using

unborn grotto
#

i hope the fumes didnt damage it permanently 😞

#

yeah of course 🙏

#

i hope im doing this right
parts:

  • 64x64 RGB LED Matrix - 3mm Pitch - 192mm x 192mm
  • Adafruit Matrix Portal M4 - CircuitPython Powered Internet Display (parts are in screenshot below)
    software:
  • circuitpython
molten iris
unborn grotto
#

yes!

molten iris
#

are you powering the matrix from the MatrixPortal or do you have a separate power supply (which I would recommend)?

unborn grotto
#

i have a separate power supply

molten iris
#

well shoot, those were my guesses

unborn grotto
#

i can show you when it previously worked, i think it might be damaged i fear 😞

molten iris
#

that would be my guess if it was working before

unborn grotto
#

bummer, ill have to get a new one before friday at least

#

i thought id be able to fix it

buoyant jackal
#

a back photo might help

#

you said fumes, but were they that strong? this seems more like a mechanical issue

unborn grotto
#

ill get some good pictures

#

heres the back of the led panel and some pictures of my mateixportal m4

buoyant jackal
#

did you put the Matrixportal and the power cables on the exact same connectors as before?

#

do you have a voltmeter so you can check the external power supply?

#

the fact you are only seeing red could be because of sagging voltage, because the red LED's require the lowest voltage

#

so you are powering this entirely from USB?

#

when it was working before, how were you powering it?

unborn grotto
#

i believe i did? im using all the same stuff

#

i think the power bank is the issue actually. i'm going to try plugging it in directly

buoyant jackal
#

so the only power connection is through USB? Is the power bank a USB power pack?

unborn grotto
#

yeah to both of those

buoyant jackal
#

do you have a hefty USB AC adapter you could try instead for debugging?

#

the screw terminals are tightened nicely, right?

unborn grotto
#

yes they are!

buoyant jackal
#

e.g like an RPi USB-C supply

#

or maybe a >= 2.1 amp phone charger

unborn grotto
#

i just plugged it into the outlet and it seems to be working fine now, i think the portable charger i had just wasnt doing it for me

#

also checked the cables and it was likely just me not plugging it in properly 😵‍💫 😵‍💫 sorry for the trouble!!

buoyant jackal
#

it's a learning experience 🙂

unborn grotto
#

that malfunction scared the daylights out of me since i have a con in a few days hahaha

#

i really appreciate you trying to help me troubleshoot that! im learning a lot even from your questions 🙏 thank you so much for your time

buoyant jackal
#

you're welcome!

abstract vault
#

Hello im new here, i am working on a 6axis robot arm. I am currently working on it and building it. But i cant move on rn since i have to wait for parts toarrive. So i was wondering if anyone could help me with Foward and Inverse Kinematics. Also about how to account for backlash with and without load, think its called Linear algebra? Also about Kinematic Chain, Kinematic Singularity and Computational geometry. These sound complex and complicated to implement. Am i overthinking these things? Can someone help me?

red panther
#

Kinematics can be complicated, especially depending on your mechanism. I would be surprised if you can estimate backlash without the physical robot, since backlash will change as the gears wear out.

abstract vault
#

Thanks!

abstract vault
#

Ok help

#

I dont undesrstand

abstract vault
#

Wat is thisss is this blinka
Linear Algebra?
Trigonometry
Geometry???

mighty walrus
#

looks like some engineering of linkages thing?

#

painstakingly done by hand

red panther
#

Sorry. I thought you knew you were getting into some heavy math

red panther
#

But you asked about backlash under load, which means you’ll also be doing differential calculus

red panther
#

I’ve never done six-axis kinematics, but I’m doing 2-axis kinematics right now for a weird little linear actuator at work.

#

Sympy is pretty great for my application: it can solve equations symbolically (and their inverse!!) and then convert it to numpy functions.

#

The hard part was in path planning: there may be multiple ways to reach a given position, and you need to decide which to use.

abstract vault
#

Tho i am learing about th three topics tho and 3d matrix etc

#

Its complicated only if you cant visualize it i would say

#

im only 17 :/

abstract vault
#

Alr so i am just gonna use a liberary to make it easier

tight stirrup
#

Hey guys I was looking to code a simple usb macro for my Nintendo switch and was wondering on what library I should be using?

molten iris
hollow obsidian
#

@woven anchor Hello there. I have a question in regards to the analog clock project here: https://github.com/adafruit/Adafruit_CircuitPython_Display_AnalogClock What is the tool you used to make the hour and minutes hands? I want to make a seconds hand. So I copied the minutes hand cropped the arrow off and colored it red. It did not work out as I expect. It floated around the outer edge of the clock dial. claude helped me discover that the BMP files rotate vs a sprite moving sort of thing. I guess I need to get my hands on the tool you used to create a proper seconds hand. 😛

GitHub

Draw a traditional 12-hour analog clock face with hour and minute hands. Allows you to provide graphics to customize the clock. - adafruit/Adafruit_CircuitPython_Display_AnalogClock

oblique bone
#

Hey friends. I'm working on figuring out what components I need for my next project and just wanted to get a sanity check on the design. The goal is super simple on the surface. Boot when receiving power, light LEDs on boot, and play a sound file on boot. It's going to be housed inside a bracer on my wrist with a membrane button feeding down to my palm. Sort of like a Spider-Man web shooter in a way. I'll want the controller to only receive power when I hold that button. Would a small form factor raspberry pi be best for something like this? I noticed that they have boot buttons which tells me they won't auto boot when receiving power. I'd be happy to be wrong in that regard though

#

Ps sorry for my handwriting. I also realized after sending this that the amp probably needs battery power too

woven anchor
# hollow obsidian <@382939733107408897> Hello there. I have a question in regards to the analog c...

I believe the hands were created in GIMP, but any image editing software that can preserve the palette should work fine I think. I'm not sure if I'm understanding what you tried perfectly or not, if you can post the image you ended up with for the second hand here it would help confirm my understanding.

Generally I think it should work to make a new hand image and add the angle calculation and additional rotozoom() call for it inside of set_time().

tight stirrup
hollow obsidian
#

@woven anchor I didn't snag a photo. The issue I made for myself was that the photo edit I did on the BMP was not in GIMP. When saved, it was no longer 240x240. Instead it was much smaller. So when executed the second hand was not centered but instead floating above numeral it was supposed to point at. This was before I learned that the entire hand image rotated. I will open the file in GIMP. Thank you!

hollow obsidian
#

got it working!

#

Here is the seconds hand file in case anyone want's it.

#

I can share code as well but I don't know how applicable it is beyond my project.

woven anchor
hollow obsidian
#

Ok let me put something together and I will add to the github.

hollow obsidian
#

The seconds hand is drawn entirely by vectorio. Polygon in code, calculating its points mathematically each second.

This is due to me using a RP2040 and hitting it's memory limits. An ESP32-S3 with PSRAM should be powerful enough to use the BMP file for the seconds hand. I don't have an ESP32-S3 on hand to test so I don't want to add code I haven't tested.

I can for sure add the code for the projects here. Github is confusing me right now.

red panther
pale shuttle
#

Hy, i have a problem with the mini-Pi-tft. I had installed pihole on my Raspberry Pi Zero 2w ( ..the adafruit project).
And now i had a question, How can i take the Display off After a Little Time (screensaver?).
Its always on, can anybody help me?

red panther
#

I’m not sure it’s possible to turn the screen off, but it might be possible to display something else. Can you say more about when you want the screensaver to start and when it should end? Are you using the display for a console or something else?

woven anchor
#

@hollow obsidian these are cool, thanks for sharing! I had to make one tweak to the Bitmap version... I think bitmaptools.rotozoom() cannot be used with OnDiskBitmap, but I need to investigate further. In anycase when I tried the code as-is it causes a hard crash. But I was able to get it working by changing the second had loading to this instead of OnDiskBitmap:

sec_bmp, sec_palette = adafruit_imageload.load("red_second_hand.bmp")

I'll submit a PR to add these as examples to the AnalogClock repo

hollow obsidian
#

@woven anchor Oh cool! Thank you for testing that! Much appreciated.

hollow obsidian
#

@woven anchor Here is a fully vector based version. I tested and confirmed it runs well on a QTPY rp2040.

hollow obsidian
#

example screenshot

red panther
# hollow obsidian

Does the second hand actually have a gap before the tip or is that an artifact from your camera?

hollow obsidian
#

it has the gap sadly

#

when it hit's certain angles

red panther
#

Ah. Needs a better line drawing routine then

#

Bresenham's is pretty easy to implement

#

Or maybe it's not drawing lines at all...?

#

I wonder if you drew the border instead of the filled polygon if it would work

hollow obsidian
#

Nice, I am going to have to try that. I was thinking it was just too thin of a line.

woven anchor
#

nice! looks good.

abstract vault
#

Hi guys a update on my robot project. So i self designed a cycloidal drive. So the thing is i designed with 0 tolerance as in backlash. This made the friction so high once i put everything together even while i used a water/sand cutter to cut gears out of aluminum. IT had a lot of resistance. It could only turn without the cap infront cause the steel bars would get pushed outward. This means i have to somehow make it a very small bit smaller? How much smaller should i make it?? Its a 90 diameter pin with 10mm bushing. I used formula to generate cycloidal gear and it worked. But it seems its to precise and in theory it should work but in practice it just locks up. Best way to fix this?

desert bane
# hollow obsidian

Can the number of hands be modified? I'm making rudder indicators for 360degree rotating rudders, if I can modify the hands to be only 1 and set that to a precise angle that would get me like 90% of the to a final solution

hollow obsidian
#

@desert bane yes

#

The original example does this. The green numerals are not a BMP file.

hollow obsidian
#

Ok sorry misread that. The number of hands CAN be modified. I mistook your request in relation to the numerals around the dial.

#

I haven't tested what happens if I go above 3 though.

red panther
#

Cycloidal drive

lean mulch
lean mulch
#

Getting a 404 on that link 🤔

lean mulch
#

Ah yep these are the NKK ones I found them too an hour ago...

#

That price though... and I'll need 81 of them! 😅😅😅

hollow obsidian
#

I can't find anything on the Adafruit store. Neat idea. Especially if it was with E-Ink.

#

yeh they look expensive

lean mulch
#

I wonder if I'll have luck scoring old discontinued stock that's lying collecting dust somewhere, in bulk...

hollow obsidian
#

You could always prototype with a limited set of shapes and colors. There are lots of key caps and LED switches out there.

#

will the game have any haptic or vibration enhancements?

lean mulch
#

Not that I have planned on, no. I'm happy to go as cheap as possible.... it just needs to show the digits 1-9 and maybe an X

#

Obviously OLED will be nice as I can make each number a different colour, and add a coloured background when a number has been correctly placed. But I'll settle for just LCD 5x5 pixels you know

buoyant jackal
#

rotary controllers with a seven-segment display next to them. rotate to change number, push encoder to set. Revert to old number if you don't click within a certain timeout

pastel shale
#

Hi Folks. Would like to power an Adafruit Metro M4 Airlift Lite (https://www.adafruit.com/product/4000) with a 3.7v LiPo battery. Thought I could wire the battery to the VIN and GND pins on the board (No 2-pin JST connector on this board). Would this work? Thanks.

buoyant jackal
cunning saffron
#

Could you use the 5V pin in the power block (or the SPI jumper block) with Schottky diode or MOSFET protection? The barrel jack input is protected, I think USB input is also. Both already feed to the 5V bus.

buoyant jackal
#

could use a 7.4V LiPo (just stacked 3.7v's) to the barrel jack

cunning saffron
#

I probably misinterpreted the circuit diagram. It looked like USB fed through a MOSFET to the 5V bus, but also the NCP1117 5V regulator directly fed the 5V bus.

#

I was a little surprised not to see a Schottky diode or MOSFET after the 5V regulator.

#

Checking the datasheet, Fig. 31 on p.11 shows two NCP1117 in parallel with no additional protection, perhaps the internal protection diodes, Fig. 25 on p.10, allow that shortcut on the metro. But again I may be misinterpreting the metro circuit (or the datasheet). There is some supply selection circuitry on the metro (that I don't understand) that may account for the unprotected NCP1117 output to 5V.

buoyant jackal
#

It is meant to be an output only. The same is probably true on various Arduino boards

lean mulch
# buoyant jackal rotary controllers with a seven-segment display next to them. rotate to change n...

This I like! Rotate rotary encoder to scroll (snake-wise) to the square you want to change, which will be indicated by flashing on/off. Click then rotate to select number (or click one of 9 numbered buttons down the side). Incorrect choice indicated by "X"+sound (add mute switch). Game won indicated by flashing pattern across all displays + sound.

What board do you suggest I use? Would have to be able to power a relatively large square-shaped 7-segment display (or multiple rectangular) and a piezo... and have decent memory to store many many sudoku patterns.

pastel shale
pastel shale
buoyant jackal
pastel shale
buoyant jackal
# lean mulch This I like! Rotate rotary encoder to scroll (snake-wise) to the square you want...

9x9 seven segment displays is a lot, and would take a of circuitry to drive. You could just use a TFT display. If you want something more blocky, you could use an RGB matrix. The minimum font size is probably 6 pixels high to allow spacing between the rows and to do numbers. You could drive that with a microcontroller. So a 64x64 matrix would be more than enough pixels. A puzzle can be described in just 81 bytes (without compression), so storing a lot of puzzles is not a problem

#

but you could use a rectangular display and use the extra for extra info

prisma oxide
#

Hello, not sure if this is the right area to ask, so apologies if I got that wrong. I am looking for some advice on the USB C PD Dummy breakout board, found at https://www.adafruit.com/product/5807, it says in the description and several posts/videos it is capable of 100W at 20v, but elsewhere, including on the board itself, it has a maximum of 3 Amps at 20v, I plan to make use of over 60W of power from USBC, could someone offer some assurance on what this board is capable of? Thanks!

buoyant jackal
static mist
#

Could I please get some intelligent suggestions on how I may be able to monitor humidity and mist water into a vivarium with a microcontroller and circuit python?

Also posted in #help-with-hw-design as I'm not sure the appropriate channel

spring solstice
#

Suggestions wanted:
I want to make a project based on ESP32/Arduino IDE where one of the nodes should have a nice big-ish screen, 4-8" or so, integrated, so basically an ESP32 board with screen.
There's a big selection out there, but I'd prefer choosing a known good product from the start. Anyone have experiences to share?

hollow obsidian
#

@red panther updated dial. Thank you again for the suggestions.

#

Using Bresenham lines to drawn the hands removed the gaps.

red panther
#

Beautiful!

red panther
spring solstice
red panther
#

No, I've never bought them together. In fact the TFT displays I had seem to have died from disuse. There's something to be said for reputable suppliers, but I don't know who that would be.

river scarab
#

I have been working on the 2 axis camera slide project and got it up and running (https://learn.adafruit.com/motorized-camera-slider-2-axis/code-the-slider). However, while the steppers do move, I am running into an issue where they have very low torque.

I do want to caveat that I changed the code 'a bit' to account for use of a Pico, generic ST screen and generic TMC2209 stepper drivers from a 3D printer. Beyond changing pinouts etc, I have tried to leave the bulk of the code alone, minus one issue I found (#help-with-projects message). I've attached the code.

Here are the symptoms.
• The rotational motor's "hold" torque is very strong
• When moving, the motors do move and make almost no noise.
• When moving, the linear motor is so weak that sometimes it doesn't engage the limit switch endstop, just bounces off of it
• The rotational motor can also get hung up on the wires if they're not positioned well, even though it doesn't take too much hand strength to move the assembly.
• I verified that physically, all belts and gears etc. are tight and not loose
• The problem is seemingly worse when fast or slow one-shots are requested as the motors often start skipping. Medium speed one-shots are relatively successful.

I have attempted to change the number of microsteps (128 to 64 and also tried 32), and also changed the run current up to "80". This made the steppers warm after extended use but doesn't seem to have increased torque that much. I also verified that the TMC2209s have their potentiometers set to maximum- I'm not sure if that has any effect since they are controlled via UART but I wanted to make sure there was no max current bottleneck with these drivers.

red panther
#

Can you make a minimal example that demonstrates the failure? I suspect there's a hardware issue (motors, wiring, power supply, driver overheating, etc)

#

You may be able to mitigate this by reducing the acceleration rate on your stepper driver

river scarab
#

I am not super familiar with the Adafruit UART TMC library so I'm not sure how to make a minimal example. But here is an example of it working (#show-and-tell message)

#

And then here it is when I introduce some resistance. It really does not take much force to get it to stall. If the motor was making noise or jumped a lot I would assume that stepper wiring would need to be rearranged (as it were in 3D printers), but it's smooth and makes no noise so I'm suspicious of that.

red panther
#

Oh wow. Definitely not an acceleration issue

#

Can you measure the current to the driver? Or the total current consumption?

#

It does look like it's driving super weak

frail sun
#

can somebnody check my simple schematic? i am not sure if i need a transistor or a resistor for the piezo passive buzzer. the rest of the schematic seems fine to me.

red panther
#

With a normal speaker you would need a capacitor to block DC, but piezo transducers are naturally capacitive

#

Hard to say how much current it will draw. I think it’s frequency-dependent.

#

Probably ok?

river scarab
# red panther Can you measure the current to the driver? Or the total current consumption?

I can measure total power draw at the supply input to the circuit, but I don't know how I would measure the current draw from the TMC2209. Is there a way to dump this out via serial (since they're controlled via UART)? I will try a 24V PSU- my limited understanding is that higher voltage helps with torque at high steppings/acceleration as it helps 'sharpen' the current ramping

#

what I'm unclear on is whether this limited amount of torque is expected from this project. I want to say that it seems that physically, the circuit seems correct. Screens display, buttons read, and UART is operational since things move and serial console displays UART addresses. There are some parts of the code that seem to imply that run_current, microsteps etc. can be adjusted but fiddling with values I have limited success in adjusting stepper torque. So either it's something I'm missing in the code, or stepper motor wiring itself is still crossed up, or perhaps a 24V PSU is needed.

tardy wraith
#

It sounds a lot more complicated than it is, I'm just bad at explaining

abstract vault
#

First joint done

molten iris
#

Other than that, there's not really a way to make a MatrixPortal flush that I'm aware of

dawn patrol
#

Hi everybody! I've got an adafruit 2.13" e-ink bonnet attached to a raspberry pi zero 2w. All is well but I want to add a ups battery to it so I can run it unplugged, and I'd love to get a case for the whole sandwich. I see some pwnagotchi cases but those are for the waveshare e-ink display (no buttons) and don't seem to have room for the ups / battery. Have others successfully gotten a battery and case together for this setup? (I don't own a 3-d printer nor have access to one, which adds to the level-of-difficulty I realize)

red panther
#

Have you considered legos for a case?

dawn patrol
#

Now those I have.

red panther
#

I thought you might. There's another question in #help-with-hw-design about a UPS with a good form-factor, but I don't have any solutions off-hand.

dawn patrol
#

Thanks!

#

If I had to choose between the case and the battery it would be the case but I can't find a case for purchase that supports the buttons on the adafruit. There's a 3-d file but as I said I don't have a printer (and having it printed is kinda spendy when you're just having one made).

river scarab
# tardy wraith What is the total power draw when you run the sequence with the bottom motor unp...

Here is what I've found. When first powered up, the setup draws 1.25 amps. When setting the rotational motor, it increases only very slightly. I should also note that the hold torque of the rotational motor is very strong. When all settings are input and both motors are running, about 3A is being consumed. What I had noticed is that the torque for the rotational motor is actually fairly strong, but the torque for the linear motor is not. When I change run_current anywhere between 10-100, it doesn't seem to make a big difference. The only other thing I will note is that the rotational motor is quite warm during use, but the linear motor is very cool in comparison

#

I should also mention that I tried changing coil pairs to see if I got something wrong- changing coil B pair the stepper started rotating the other direction so basically my original stepper wiring seems correct and nothing is crossed etc. I am going to double check my circuitry for the linear motor stepper to make sure nothing is amiss. I will mention again that I am using the 3D printer style stepper "sticks" rather than Adafruit's own TMC2209s- there are some differences but I think I got the wiring right. Any other insight is appreciated but other than double checking solder joints for the linear motor, I don't really know what else to do. I might even start running the code through a LLM at this point to try to diagnose.

gritty birch
red panther
#

I still don’t think it’s the code. Can you swap the drivers? I want to know if the issue follows the motor or the driver

#

Since you’ve said the holding torque is good on rotation but not linear, you don’t even need to step the motors to see the issue.

sturdy depot
#

anybody think they can help me figure out how to replace a touch on/off ribbon cable with a tactile on/off button

#

?

#

i'll post pics

#

I'm mounting the mini PC in a new case but I want to have a physical switch that turns it on/off as opposed to a touch sensor

#

I don't know where I can solder the wires

#

I see 4 pins

#

and I cannot find a wiring diagram of my Mini PC anywhere

sturdy depot
#

The brand of the pc is “dreamquest” by the way

#

If anyone can dig up a wiring diagram

red panther
#

Do you want to keep the ribbon cable? You can buy flex PCBs from OSHPark

#

Otherwise you’ll be soldering to those connector pins, which may be fragile

sturdy depot
#

Then yes

#

Its a 4 pin ribbon cable and its small so I don't know if one exsists

red panther
#

If you can draw it, they can make it. Kicad preferred but any gerbers will do

#

Or you could buy a double-ended ribbon cable and use a similar connector on the other end

#

The ribbon cables definitely exist: whoever is making that PCB is not making custom connectors

sturdy depot
#

I wouldn’t know wheee to get them or how to wire it to a button. I’ve soldered before but never a ribbon cable

#

Ideally I’d like to use what I have

#

And make it as simple as possible

#

Is there a way to wire this to an on/off switch?

#

This may fit that connector on the mini pc

red panther
#

Yeah that works

woeful yew
lone tree
#

the nav switch is simple through the hole soldering, so it would be easy enough (and significantly cheaper) to order just the PCB, without assembly, and do the soldering yourself.

woeful yew
lone tree
#

if you design you boards in KiCad, there is an add-on that creates all necessary production files literally in one click

#

for board types etc, you probably want to keep default options - green solder mask, 1.6mm FR4, 2-layer,

sturdy depot
#

i need help, what are the 4 pins? I dont know whats ground and whats power

#

im trying to wire a power button to a mini pc

#

I have multiple momentary buttons but they only have 2 pins where on the PCB there are 4 pins and they don't know what pin goes to what

buoyant jackal
sturdy depot
#

Any recommendations for good 4 legged ones?

buoyant jackal
#

do they fit in the PC holes? Can you see traces under the solder mask in bright light?

#

we sell a wide variety of 4-legged ones, including assortments

#

sorry I misunderstood your problem

sturdy depot
#

Basically I want to mount the mini pc board into a case and I want to use an external power button to turn on the mini pc but the power button that was originally on there was a touch sensor ribbon cable.

buoyant jackal
#

is this mini pc board meant to have a tactile button on it, or is it meant to connect to a button on a case?

#

a link to the product would help

sturdy depot
#

I’ll post a pic

#

That’s the touch sensor flat cable and the connector

buoyant jackal
#

is the touch circuitry on the cable or on the board?

sturdy depot
#

On the orange cable

#

I think

buoyant jackal
#

so maybe two of the connectors are power and ground, and two are the terminals to short when the button is pressed. Or maybe it's an I2C touch sensor chip on the cable, in which case you can't do what you want, because the connections are the I2C bus, power, and ground

#

really need to see the schematic

sturdy depot
#

I can’t find the schematic anywhere and I looked all over. I did manage to turn it on occasionally by connecting 2 of the pcb pins with one of my 2 pronged buttons but I couldn’t turn it back on by pressing the button once I shut the pc down. It

#

So if I can take a wild guess I think I need connections on all 4 pins to get it to work

buoyant jackal
#

I websearched the first part number on the cable

sturdy depot
#

Yes

#

That’s the exact one

buoyant jackal
#

is it really touch or does the button have a little click? Does the button light up?

sturdy depot
#

The button lights up and it did have a little click

buoyant jackal
#

probably two wires for the button, two wires for an LED. Or maybe one is unused and they share a ground. I'd suggested reinstalling the cable and probing the connections while operating the button. You may be able to see that pressing the button causes one of the pins to, say, go to ground. And when it lights up you can see a voltage on one of the pins

#

I don't think it is "touch", it's mechanical.

#

in other words, reverse-engineer what is going on by measuring voltages on the pins. You could also check which pin is ground by measuring continuity between each pin and ground (e.g. a USB jack shell) with the power unconnected.

sturdy depot
buoyant jackal
#

do you have to press or can you just brush it with your finger?

sturdy depot
#

Yeah brush with finger

buoyant jackal
#

If there's an IC there then it's a touch controller, possibly I2C. So I would suggest forgetting this method, and instead find a setting in the BIOS to make the machine power up when power is applied. This is usually available in BIOS's: on power applied, stay off, or turn on.

#

Then you can control the main power to the mini-PC and have it turn on that way. Much easier than trying to substitute something for this fancy power button

sturdy depot
#

Problem solved

wary dust
#

I'm wondering if anyone has any good ideas for mounting any of the boards that don't come with mounting holes. Adafruit sells a couple of plastic cases for the QtPy but some of the other boards like the TinyS2/S3 or ItsyBitsy don't have cases for them and I don't have a 3d printer.

red panther
#

Mounting to what?

#

Classic solutions are double-stick foam tape or even hot glue

#

You’re putting this into a project, right? Or does the board do everything you need with no sensors or peripherals?

wary dust
#

Sorry. Usually with sensors and occasionally with battery. Kind of didn’t think of hot glue or double sided tape. That and an altiods case or plexiglass might work. Mounting to wall or board. Need to figure out a location and mounting for multiple projects running simultaneously.

wary dust
#

Also, at a slightly higher cost and extra work, if I solder on headers I guess I could just use an inexpensive solderless breadboard to hold the device.

buoyant jackal
weak wren
#

Spent way, way too long figuring out why my eInk display wasn't working. Finally figured out that even though the product description says the 3.52" display is 340x180, the code confirms it's 180x384—i.e., it's in "portrait" mode, and it has 44 extra rows/columns. Not sure where else to flag it, so: please update the product description?

GitHub

e-paper display driver for Arduino. Contribute to adafruit/Adafruit_EPD development by creating an account on GitHub.

opaque quest
#

Hey guys! I am learning some breadboarding right now and I was trying to breadboard a 555 Timer Schematic that I have, however I couldn't figure out how to fix the breadboard that I made such that it blinks properly and not be overly dimmed. Do you have any ideas?

silver hull
#

https://learn.adafruit.com/assets/107207
I think I'm having issues with my ItsyBitsy RP2040..

peRecTwo = digitalio.DigitalInOut(board.D24)
peRecTwo.direction = digitalio.Direction.INPUT
peRecTwo.pull = digitalio.Pull.DOWN

This works just fine, I can get input to the board from my photo eye.

But the following three do NOT work, and if I use an inline LED to see if I am getting signal from the photo eye, I can have NOTHING plugged into those pins, yet I still somehow have a very very small voltage output, the led is DIM. I tried all three of the following pins below but once I moved to D24 I got it working?? I changed NOTHING other than code.

peRecTwo = digitalio.DigitalInOut(board.A1)
peRecTwo.direction = digitalio.Direction.INPUT
peRecTwo.pull = digitalio.Pull.DOWN

eRecTwo = digitalio.DigitalInOut(board.A2)
peRecTwo.direction = digitalio.Direction.INPUT
peRecTwo.pull = digitalio.Pull.DOWN

peRecTwo = digitalio.DigitalInOut(board.A3)
peRecTwo.direction = digitalio.Direction.INPUT
peRecTwo.pull = digitalio.Pull.DOWN
#

And incase you're wondering, I have another photo eye plugged into A0 and it works just fine as expected.

Upon further testing, I can use A2 and A3 as outputs for buttons and I get proper response, but if I try to use A1 for the buttons that worked just fine with 2 and 3, I get nothing, it's as if pin A1 is broke both ways for input/output and A2/A3 are broke for inputs?

red panther
red panther
silver hull
#

So if I accidentally sent too much voltage to those pins then I blew them?

red panther
#

Yeah, they can’t take more than 3.3v

silver hull
#

Hmm, I might have accidentally sent 12V to A1 but I don't remember having anything plugged into the board when I was testing my transistor setup

red panther
#

It’s possible to fry a few pins without hurting the rest of the chip. I know I have

silver hull
#

Well, seems that my A1 pin is fried. Looks like I can't use this board for the project I pulled it from. LMAO

#

@red panther Thanks for the help!

red panther
#

Any time 🍻

silver hull
red panther
#

I expect it’s connected to board.LED

silver hull
#

Well, I've changed nothing in my code and haven't really moved any buttons, leds, photoeyes and it's on and DIM

red panther
#

I don’t have an itsybitsy but we can check the schematic

#

Apparently it’s board.D13

#

I’m surprised they decided to share an io even with the reduced pinout

silver hull
red panther
#

Depends on how you have them wired

#

I can get 1.5V from a red LED just by pointing it at a light

#

1.8V in bright sunlight

silver hull
#

Yeah, but all three other photo eyes are not outputting power right now.

#

Also, to answer about the red led on baord:
The little red LED is located towards the middle of the board between 13 and 12 on the silk. It is controllable in CircuitPython code using the pin board.LED. It is on RP2040 pin GPIO11.

red panther
#

Do you know if the photodiodes are forward- or reverse-biased?

#

Hmm. I guess that would also depend on the current path when your circuit is “off”. Too complicated

#

Anyway. Is the red glow an issue?

silver hull
#

I think you're confused on the thing I am using, this is what I am using. There's a transmitter and a receiver.

silver hull
red panther
#

Do you know what’s inside the receiver? Should be a photodiode or phototransistor

silver hull
#

Ahhh, not sure.

red panther
#

The transmitter is probably a laser diode

silver hull
#

Looking for REC datasheet now

red panther
#

Oh cool, I didn’t realize you were using industrial sensors. How are you getting the voltage down to 3.3v

#

Voltage divider?

silver hull
#

No, just a 10K resistor

red panther
#

Uhhhh

silver hull
#

So, powering the + is 12V, then ground is controlled through the transistors, and the black control wire is going through the resistor back to the RP2040

red panther
#

You have the NPN variety?

silver hull
red panther
#

The NPN uses a pull-up and might work by connecting the load resistor to 3.3V

silver hull
#

Also, interesting thing that just happened. I unplugged the photo eye that was connected to the RED led, swapped with another receiver and the LED turned off. Seems the photo eye is bad?

Also, yes, these are industrial. I install high speed doors for work, and we have to wire these photoeyes, sometimes we don't have power and we lose track of which wire is which, so I'm making this tester to be able to power them so when electricians get us power, we don't have to troubleshoot photoeyes

#

Yeah, put the bad photo eye on the other wire and the other led came on as well. Seems like something is crossed inside of it

red panther
#

The PNP uses a pull-down and will source whatever voltage is at the brown wire (12V in your case). How will a single resistor protect your rp2040?

silver hull
red panther
#

Through the over-voltage diodes then?

#

I suppose it’s only 1mA

silver hull
#

ah

red panther
#

Or maybe through the internal pull-down resistors? That’s risky because they have a wide range of possible values

#

I think a voltage divider will be the easiest solution. Have you checked with a voltmeter to see what you’re actually getting at the pins of the itsybitsy?

silver hull
#

Nah not yet. My meter is at our shop in my work bag. Had a dang pokit pro but somehow blew the fuse in it and just never ordered a new fuse 🥲

red panther
#

Isn’t the fuse only for current measurement?

silver hull
#

There’s two fuses, can’t remember which one it was

red panther
#

I’m not sure what the role of the microcontroller is, but if you want indication on your inputs, a blue or white LED might work nicely and double as voltage protection

#

Forward voltage of blue is typically 3.0 to 3.2V

#

Alright, I need to sleep. Good luck!

silver hull
#

The LED’s currently on the breadboard were just to see if I was getting power from the receivers, that’s all

red panther
#

So the transmitter is only powered some of the time?

silver hull
#

What made you ask that?

winged bay
#

Im using Feather RP2040 USB Host with TinyUSB dual role. I want to read a USB mouse and send HID to PC — any examples or pitfalls? If you're advanced in this topic i would really like some help in dms 🙂 If youre cool with semi frequent question a few a week. If not I'd love a quick piece of help on the subject here😁

red panther
#

Never tried it but sounds fun. What are you doing with the mouse data though?

molten iris
red panther
#

I wonder what kind of positional accuracy an optical mouse provides? Could be fun for a dead reckoning autonomous robot

fleet terrace
red panther
#

Apparently they get the throughput with Lucas-Kanade by using low-resolution images.

fleet terrace
#

It would be fun to build a small robot using one though.

red panther
#

And enter the "micromouse" competition 😂

tiny torrent
#

does anyone have any experience with the piunora pro/lite from diodes delight? Or any deeper knowledge with the board? having some struggles outputting UART logs and am very novice with pi's generally, and looking to find someone who might know a thing or two

red panther
#

You’re trying to view the system console over UART? It should be on by default

forest steeple
#

Does anyone know what type of connector this is? It's slightly narrower than the ones for all the batteries/packs I have...

minor snow
# forest steeple Does anyone know what type of connector this is? It's slightly narrower than the...

If nobody happens to know, https://youtu.be/Mf_rMngXQ04 is a good tutorial for trying to narrow down the possibilities yourself.

The new Raspberry 5 has a new UART port, which is great because the first 4 Pi's used the hardware serial as a UART - which made debugging hard when using something like a GPS.

However, unlike the GPIO header UART, this connector is SMT, and much smaller than 0.1" pitch. While we can always contact the Pi folks for a part number, let's figure ...

▶ Play video
willow reef
#

Can someone help

#

Shows white blanks screen

inland summit
#

I need a quick & easy way to add Bluetooth to a feather rp2040, preferably in a feather footprint or small enough to connect to ᚦe feather protoboard. I have very limited space as I have to fit all 3 boards, a battery, & an n64 socket into an n64 rumble pack

#

Id also like it to be stemma compatible

brisk rain
#

why do you need rp2040? nrf52840 are great on their own

inland summit
#

Cause its what I got for ᚦe project. ᚦe project code was also written for ᚦe pico originally

inland summit
#

I ᚦink im just gonna get ᚦe sparkfun board. It looks to have a roughly feather footprint & has everyᚦing i need

ionic wren
brisk rain
azure spire
#

Wanna pick up the (JST) PH connector kit,
Not so sure my wires will fit.
The spec page lists 24 gauge,
Can I make do with 22?

buoyant jackal
#

Applicable wire range:
Conductor size/ AWG #32 to AWG #24
  Insulation O.D./ φ0.5 mm to φ1.5 mm

buoyant jackal
azure spire
red panther
#

The wrong way to do it is to nick a few strands when stripping. But it works…

#

I.e. use the 26AWG slot to strip the 22AWG wire

#

The insulation support will still be a little tight

inland summit
remote raft
#

I'm trying to glue the servo in place where I marked the foam but the rod also pushes the servo back.

The demo video is what I'm aiming for.

I think either the rod needs to be longer or I have to find another mounting point?

woeful yew
#

Does anyone have a link to an example of using multiple adafruit 504 or similar 5-way switches with a matrix?

I’m seeing conflicting information about using GPIOs in low in lieu of the ground pin on each switch? There are some suggestions about using 1n4148 diodes inline with the switch connections too, but not many sources for that either.

I’m trying to run 6 of the 5-ways plus an analog joystick on one pico 2 for context.

red panther
# woeful yew Does anyone have a link to an example of using multiple adafruit 504 or similar ...

You can do it with matrix scanning. It will take six outputs and five inputs. And 30 diodes, to prevent ghosting. If you will only be pressing one switch per 5-way then you can get away with six diodes, or if you will only be pressing one switch at a time you can skip the diodes altogether.
https://docs.qmk.fm/how_a_matrix_works

#

But I guess you already got that far. Treat each 5-way as its own column, with a digital output connected to the ground pin

#

Can we call it “common” instead of “ground”? Because that pin is common to all five switches in the 5-way?

inland summit
#

So, im trying to make ᚦis (https://github.com/DavidPagels/retro-pico-switch?tab=readme-ov-file) but replacing ᚦe pico wiᚦ ᚦis (https://www.adafruit.com/product/6243). I am placing it in a rumble pack instead of having it be a board in a printed enclosure & will be powering it wiᚦ ᚦis (https://www.adafruit.com/product/5612). If i were to cut ᚦe old battery terminals off ᚦe packs original board & wire it into ᚦe battery for ᚦe Bluetooth adaptor, would it work right? Or would ᚦe rumble pack pull too much power when it activates & shut ᚦe board down?

GitHub

Play Nintendo Switch Online N64 games using an Original N64 controller via a Raspberry Pi Pico! - DavidPagels/retro-pico-switch

forest steeple
red panther
inland summit
#

ᚦere is a mod to make it draw from ᚦe consol rather ᚦan batteries @ 3.3v but since in ᚦis case ᚦe battery of ᚦe bt adaptor is also powering ᚦe controller, ᚦat modern feels redundant when i can patch directly

#

I might be able to sandwich a second liposuction in ᚦere & connect ᚦat to ᚦe rumble boards but I wouldnt really have a way to charge it, unless ᚦere is a way to patch in a charge board & wire it to ᚦe pimoroni. Essentially charge ᚦe first battery, it powers ᚦe piromoni, which ᚦen outputs ᚦe charge from ᚦe 3.3v rail into a second charge board & charges ᚦe second battery. It feels dangerous but doable.

#

Which i might switch to for ᚦe piromoni if it will work for ᚦat board too

red panther
#

I would recommend running the motor directly off the lipo rather than putting the strain on your 3.3v regulator. You can use PWM if it goes too fast

#

I wish the battery protection circuit wasn’t called liposuction. It makes it sound like a joule thief

inland summit
#

Oh. ᚦat's autocorrect

#

@red panther ᚦis is ᚦe board in ᚦe knockoff pack i got. If im reading ᚦis right, ᚦe M1 holes are connected right to ᚦe battery so I can wire directly into ᚦere & cut ᚦe battery terminals off right?

red panther
#

I think M1 is for the motor, not the battery. See how Q1 is between the negative lead and the ground pane?

inland summit
#

So I would have to cut ᚦe terminals off, scrape ᚦe mask off ᚦe traces ᚦat led to ᚦem, ᚦen solder directly to ᚦe traces?

red panther
#

How about de soldering the existing battery terminals and using that?

#

Or do you want to cut that portion off?

#

The last pin on P1 is ground

#

Soldering directly to the ground plane is difficult, even with a 100W inductive iron.

inland summit
#

If i am going to attach ᚦe Bluetooth adaptor project, ᚦe whole section where ᚦe terminals is in ᚦe way

inland summit
red panther
#

Ok then. Solder to the negative side of the capacitor by EC1

#

Yes, M1+ is the same as the positive battery terminal

inland summit
red panther
#

P1 is fine too. I thought you said it was covered by your bluetooth module?

inland summit
#

Everyᚦing in ᚦe white box needs to be removed

red panther
#

Ok, thanks for clarifying

#

P1 pin 5 will be the easiest to solder to for ground

inland summit
#

So wire in ᚦe output on a lipo charger to ᚦese 2 places

red panther
#

No, that’s pin 1. Pin 5 is on the other end

inland summit
#

Right. I see ᚦe traces now

red panther
#

The square pad is always pin 1

inland summit
#

So like this

red panther
#

Exactly

inland summit
#

Ok. I need to draw someᚦing up. Brb

inland summit
#

Might have ᚦe wiring wrong but would ᚦis work?

#

Im aiming to have 1 usb c charge boᚦ batteries

#

Or should it be this

red panther
#

No. If you want two batteries you should charge them both off 5V. The battery charger has a voltage drop [looking up datasheet]

inland summit
teal dust
#

ok im very new to microcontrollers. I have the xiao seed studio s3 esp board, https://www.elecrow.com/2-8-inch-320x240-spi-serial-tft-lcd-module-display-with-driver-ic-ili9341.html
that screen. I want to display the camera feed from the camera into the screen for this project. I know that it will be super laggy, that is fine. However, right now whenever i upload any code to the espboard, which i wired tot he screen. Nothing is happening. Even just code to display like text. I dont know how to debug this, as this is like my second time working with microcontrollers, and my first with esp. Right now, the screen displays only white, when i plug in and doesnt change at all.

elecrow.openhardware

This 2.8-inch color screen module is equipped with 320×240 resolution and 16BIT RGB 65K color display and the touch function is optional. It uses SPI serial bus interface, has SD card slot, and provides rich sample programs.

red panther
red panther
inland summit
red panther
cunning saffron
#

@inland summit I may have missed something along the way, but I don't think you want to put battery power onto the 3V pin of the Pimoroni. The 3V pin is a 3v3 output from the onboard regulator. VBUS is 5V USB power, so that would drive the two backpacks, and if USB 5V is not present charging the battery, the backpack will output ~3.7V onto VBAT.

#

The Pico (I'm using that name generically) does allow multiple power sources as inputs onto VSYS (but not onto VBUS or 3V), but each source needs to be protected by a Schottky diode or transistor so they don't get back-powered from other sources.

#

You can use it, it's a nice little charger board, but each source needs to be protected when fed to VSYS on the Pico, because the Pico like most non-ItsyBitsy boards don't have that protection built-in.

teal dust
#

is that what you were asking?

red panther
inland summit
inland summit
inland summit
#

Im the first version, the charger boards (cb) get their power from the same pin (vbus) but output to different boards all together: top goes back to pico (vsys), bottom to the rumble pack (rp for short).

In the second version, the charge again pull from the same pin (vbus,) but then both can output to the picos vsys. From there, the pico sends power along the 3.3v rail to the rp.

#

If im not mistaken, ᚦe batteries in example 2 would be wired in parallel which increases...um...capacity?

red panther
#

Yes, putting the batteries in parallel increases the capacity. Normally it is more cost-effective to use a single larger battery, but this might make sense if you need two batteries to fit the physical space

red panther
cunning saffron
#

Maybe it's OK, but I'm a little nervous about two batteries in parallel... only because as their voltages drop, supply will be thrashing back and forth between the two? Maybe that's perfectly fine, but maybe there's some consequence of that

#

The other thing to look at, and maybe you have already... the diodes have a voltage drop. The output voltage to VSYS needs to be checked against the input range (with 3.3v output) of the regulator on the Pico. It may become low as the battery depletes. I think that's where the P-FET comes in (see the Pico datasheet section 4.5). I don't know if two P-FETs in parallel work, they turn on or off due to VBUS, but I don't know what they do if VBUS is off and both have batteries. It may be cleaner in this case to run the motor board separately from the second battery.

#

Also, I assume you have plenty of current from the regulator to drive the motor board (Pico Plus 2W puts out 600 mA, and the board needs 330mA? Are there start-up current spikes?)

red panther
#

I’m pretty sure there are startup spikes with a haptic feedback motor. I would be more comfortable running the motor directly from the battery (before the diode), in which case you can use a capacitor after the diode to ride through those current spikes

#

For comparison, the rp2350 draws 30mA and the bluetooth module has 70mA spikes during transmit (though very brief). The haptic motor will draw 300mA for 200ms or more.

inland summit
inland summit
# cunning saffron The other thing to look at, and maybe you have already... the diodes have a volt...

Yeah. I love ᚦe idea of wiring ᚦe 2 batteries into ᚦe pico & running everyᚦing off ᚦat, but it does feel safer to run ᚦe rp wiᚦ ᚦe second battery dedicated solely to ᚦat task. Simpler & safer. I have built ᚦis project before & tried running ᚦe original motor off ᚦe pico & it just kept crashing ᚦe transition for ᚦe bluetooth, which is why I came up wiᚦ ᚦe second battery idea. ᚦis project is someᚦing of an upgrade of ᚦe last one: needed to be usbc, needed rumble as wiᚦ ᚦe way ᚦis is set up ᚦere is no way to add in anoᚦer pack, needed to have rechargeability ᚦrough ᚦe pico, & needed to all fit in ᚦe rp shell. Im even looking to swap ᚦe original motor wiᚦ ᚦis (https://www.adafruit.com/product/1201) so I can have a smaller motor placed elsewhere in ᚦe pack & put ᚦe n64 controller port where ᚦe original motor was.

#

I also needed to smooth out ᚦe solder points & essentially armor ᚦe battery as last time, ᚦe board punctured ᚦe battery & destroyed it

#

I could technically swap in rechargeable batteries into ᚦe original battery compartment remove ᚦis circle (which holds ᚦe motor in place & set ᚦe boards ᚦere, but will ᚦe charge boards charge over ᚦe counter rechargables?

#

I did look for ᚦe blue wrapped type but found noᚦing in tolerance. Not even of digikey

red panther
red panther
red panther
inland summit
#

Basically just doing ᚦis wiring

red panther
#

Sure, that’s a good idea

#

Just be careful and check your voltages before connecting the pimoroni

inland summit
#

I can shove ᚦe charge boards @ ᚦe blue arrow, ᚦe n64 connector to ᚦe red, & secure ᚦe motor to ᚦe white (this is from ᚦe original project. I got a new casing for this)

red panther
#

Nice!

inland summit
red panther
inland summit
# red panther Nice!

ᚦe shameful part is ᚦis is an authentic Nintendo shell. Should have bought ᚦe Chinese knockoffs

inland summit
red panther
#

Please excuse me for being so cautious

inland summit
#

Its ᚦe otherside I need to figure out since ᚦat's getting removed from ᚦe rp board

inland summit
red panther
#

I wonder if you will want to monitor the voltage of both batteries? Do you have somewhere to report a low battery?

inland summit
#

No idea. Space is a premium in ᚦis build, so I never ᚦought about external indicators

red panther
#

What about bluetooth?

inland summit
#

What do you mean?

red panther
#

Can you send the battery state over bluetooth to something? I don’t really know what the rest of the system looks like, but it could be frustrating to have one battery dead and not know it

inland summit
#

Oh. I dunno. Since I didn't write ᚦe code, I dont know what's all in it. It might be able to do ᚦat. I know ᚦe switch can tell you ᚦe level of controllers but not if ᚦat coding is in ᚦis project

#

ᚦere is an indicator on ᚦe piromoni. I could put a simple fiber optic style redirect on ᚦat. Purely mechanical

red panther
#

A light pipe? That’s a great idea

inland summit
#

Might do ᚦe 4mm diameter one instead. I'll still need to cut into it to make it sit right, but it should have ᚦe same result

#

Drill a little hole in one of ᚦese 2 spots (just under the 4mm diameter size) & pull it ᚦrough. Friction will hold it in place & I can eiᚦer cut it flush, or do a carving wiᚦ a really sharp knife. Im ᚦinking ᚦe triforce

red panther
#

Oh, I see. Real fiberoptics

inland summit
#

ᚦe fiber optic tube will work ᚦough right?

inland summit
# red panther What about bluetooth?

I just realized. No. ᚦe original project is powered by directly plugging into a power source. I added ᚦe built in battery as I wanted to be wireless. Id need someone to write new code to accommodate battery level readings as I dont ᚦink ᚦis code is in python @ all, which is what im trained in

red panther
#

Fair enough. It’s good to know that the support is there on the wii side, but it might not be trivial to implement since this is before BLE

inland summit
#

ᚦat does bring up an idea. ᚦis was written for ᚦe switch, but could it be used on ᚦe wii as well

red panther
#

Oh! My bad. The switch remotes are BLE, but the Wii remotes are classic Bluetooth. I got mixed up

inland summit
#

You're fine, just got me ᚦinking 😃

red panther
#

The rpi pico hardware supports classic Bluetooth

#

But obviously it will require changes in the code

inland summit
#

Which i can't do myself.

#

ᚦanks for your help wiᚦ ᚦis. I'll keep you posted. If I need help I'll reach out

outer cloak
#

How can I keep a m5stack stick plus c on on battery via light sleep

I already have this

rtc_gpio_init(KALIVE_PIN);
    rtc_gpio_set_level(KALIVE_PIN, 1);
    rtc_gpio_set_direction(KALIVE_PIN, RTC_GPIO_MODE_OUTPUT_ONLY);
    esp_sleep_enable_timer_wakeup(5000000);
    esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_ON);
    esp_sleep_pd_config(ESP_PD_DOMAIN_VDDSDIO, ESP_PD_OPTION_ON);
    esp_sleep_pd_config(ESP_PD_DOMAIN_RC_FAST, ESP_PD_OPTION_ON);
    //esp_sleep_pd_config(RTC_SLEEP_PD_DIG, ESP_PD_OPTION_ON);
    //esp_sleep_pd_config(RTC_SLEEP_PD_RTC_PERIPH , ESP_PD_OPTION_ON);
    //esp_sleep_pd_config(RTC_SLEEP_PD_VDDSDIO, ESP_PD_OPTION_ON);

    rtc_gpio_pulldown_dis(KALIVE_PIN);
    rtc_gpio_pullup_en(KALIVE_PIN);
    rtc_gpio_set_drive_capability(KALIVE_PIN, GPIO_DRIVE_CAP_3);
    rtc_gpio_hold_en(KALIVE_PIN);
    // 2. Power Management (The Secret Sauce for 24h battery)
    esp_pm_config_esp32_t pm_config = {
        .max_freq_mhz = 80,
        .min_freq_mhz = 40,
        .light_sleep_enable = true
    };
    ESP_ERROR_CHECK(esp_pm_configure(&pm_config));
red panther
outer cloak
outer cloak
#

@red panther I fixed the issue

Don't worry, I followed all the correct board and matching it before soldering

#

Managed to find a donor with the correct tech and voltage but bigger mah

#

But no protection circuit so I have to transplant it over

outer cloak
inland summit
buoyant jackal
red panther
inland summit
inland summit
buoyant jackal
inland summit
buoyant jackal
#

which phone OS are you using, and which feature is this? It's not just the typical iOS (say) predictive replacement, is it?

inland summit
#

Samsung text shortcuts

buoyant jackal
# inland summit Samsung text shortcuts

If you want to remove one of your text shortcuts, follow the steps above to access “Samsung Keyboard Settings,” then, at the “Text Shortcuts” screen, tap the trash can icon and select which shortcut you want to delete.

#

maybe you don't want to delete it, but sounds like you can delete just one

inland summit
#

I dont think one word deleted will be enough

low pelican
#

Hello, I have a fish tank with a heater I want to make a circuit using an arduino or a pico to cut the power to a device at the AC outlet if the temperature rises above a certain point. What resources and stuff can I find to understand what I'm doing I actually want to understand it and not rely on AI for it. I know this is a commercially available product but I want to do it myself. Please redirect me if this isn't where to ask this stuff

wary dust
red panther
#

The adafruit store is actually a pretty good place to look for things. For example, if I search "temperature" I get all kinds of i2c temperature sensors, RTD amplifiers, Thermocouple amplifiers, probes https://www.adafruit.com/search?q=temperature&p=1

#

Even if you don't buy from Adafruit, this tells you what will have support in Aruino/CircuitPython

low pelican
#

or a fire a fire would be pretty bad

red panther
#

Ok. Let's look for a packaged SSR with overcurrent protection and the plugs built into the enclosure. Maybe it exists?

low pelican
#

ok, i just dont want to destroy the heater to connect it to the device, im sure my campus has a 3d printer worst comes to worst i can find some sort of plug head for it. maybe im thinking about it wrong but i was thinking it would go outlet -> pico/arduino -> heater and then the probe sees the water hit 82f and kills the heater at the wall

low pelican
red panther
#

The switched outlet doesn't have any of the brains to do it

low pelican
#

sorry if im being dificult i just want a fun tricky thing to do, most of my hands on experience is mod chips and stuff i havent made much before

low pelican
red panther
low pelican
#

but obviously if thats stupid ill just skip that step no point in doing something thats bnound to fail

red panther
#

Page 25 has SCRs

low pelican
#

this is seeming slightly bigger of a project than i assumed 😅 . I figured it would be AC-in -> 5v relay module -> thermo/MC -> AC-out and if the thermometer reads 82 it opens the circut

red panther
#

I'm getting mixed messages from you. Do you want to put parts together and do a little programming?

low pelican
#

i feel like its been expressed on its own im not incredibly advanced in this field yet

gritty birch
#

it's more like
AC in -> relay -> AC out
^
MC
^
Thermometer

low pelican
#

im totally down to put everything together and code it i jusdt kind need to figure the parts list out

red panther
#

Great. Pick a temperature sensor (probably TC or RTD for durability) and an amplifier

gritty birch
#

waterproof thermocouples (TC) are pretty widely available

#

though I've also seen people just tape a thermocouple to the outer glass of a tank for ease

#

the temperature won't be 100% accurate, but it's probably close enough

low pelican
#

my room is roughly 15-17f below tank temperature

low pelican
gritty birch
#

yeah, but the glass is warmer than the room, so you can mess with your cutoff temp a bit until it's close enough

low pelican
gritty birch
#

but depends on how sensitive your critters are to temperature. I had a turtle that was pretty sturdy

red panther
#

Oh. That's a Dallas one-wire probe. You won't need an amplifier, but you will need to use the right library

low pelican
#

if the water is hitting 83 its because the heater failed and is gonna fry the tank anyways its just going to keep climbing

red panther
#

That's an interesting point. What do you want to happen when the heater fails? How will you detect it?

gritty birch
#

well heaters can fail on or fail off

low pelican
gritty birch
#

you could also use some kind of messaging to send an alert to something (MQTT to home assistant is a popular choice for self-hosters, webhook to discord for ease)

low pelican
# gritty birch well heaters can fail on or fail off

one is MUCH more detrimental as all i gotta do is just kill the AC for a few hours while i run to the store to grab one. this project is just something to do while also being functional for me i find this stuff fun

red panther
#

Sure. Start simple and make it work

low pelican
#

i dont know much on the arduino side of things i know this server is more arduino focused

red panther
#

Is it? Most discussion seems to be around CircuitPython

low pelican
#

i dont think it makes much of a difference which one i go i frankly am aiming for whatever works

red panther
#

Doesn't matter. Use what you have

low pelican
#

that would be neither

red panther
#

😂

low pelican
#

i have a pi 4 and im using that for other things plus its like way over kill

red panther
#

Pico W is a great choice then

#

Very affordable

#

And there might be a PIO library already made for Dallas one-wire...?

low pelican
red panther
#

No, it's the Adafruit fork of MicroPython

low pelican
#

plus theres 2 arduino channels and no PI channel

low pelican
red panther
gritty birch
low pelican
#

ah

gritty birch
red panther
#

There's also a general chat that I never venture into

low pelican
red panther
#

But hey. It's not Discord if you're always on topic

low pelican
#

fax. in terms of on topic what would i probabbly need? pico, temp, relay, and something else probably?

#

obviously a way for AC i guess that would be the place to start

red panther
#

You'll need a way to power the pico. Those little 5V cell phone charges work great

#

And a USB cable

low pelican
#

you think i could siphon the power from ac or is that just making a bomb with a pico

red panther
#

Tell me more

low pelican
#

idk was tryna think of a way for one less cable 😭

#

id assume a pico doesnt draw enough plus the heater to cause an issue

red panther
#

Applying either 10A or 120VAC to the pico is ludicrous

#

It takes 30mA and 5VDC

low pelican
red panther
#

Ok. Think this through with me. What happens when you shut off the relay?

low pelican
#

exactly

red panther
#

How is that a bomb?

low pelican
#

wait maybe im confused. im stepping into territory where im talking nonsense now. it may be easier to saccrifice an outlet to the pico than to get it from the outlet also powering the heater

red panther
#

So... the switched outlet I linked has four outlets. One of them is always on

low pelican
#

i may have driven this off the rails... the only thing that would need to be killed and controlled in this is a single heater on a single outlet and also with the current outlet situation id essentially be daisy chaining extenders. what i have cooking in my head may genuinely not be a possible thing to do.

#

i just wanted to make a mediator between the wall plug and the heater plug to kill the heater if the temp climbs too high and keep the heater off. im sorry im pretty bad at explaining myself 😓

red panther
#

Please draw a diagram

low pelican
#

oh boy dont expect it to be good i will try

low pelican
#

like thats the best way to put it

#

my question that threw everything off was would there be a way to power the pico without using another outlet

#

im sorry i know im testing your patience here

red panther
#

There's always a way. How crazy do you want to get?

low pelican
#

is hearing both hard and easy out first an option

#

im not opposed to starting hard exactly but if its pointless and expensive then whats the point of making it myself 😭

red panther
#

What do you mean "both"?

#

Are there only two options?

low pelican
#

mb

#

i assumed it was a choice between harder and least resistance

red panther
#

No, I asked how crazy you want it to be

low pelican
#

functional, doesnt have to be crazy i just want it to work but like there comes a point of deminishing return where its more logical to get a brick and a usb cable for $7 at wallgreens

red panther
#

Ok. It's definitely more logical to get a brick and USB cable. But here we go

#

You can use a battery to power it, though you will need some way of replacing or recharging the battery

#

You could try to use a solar panel to power it. Going to be tricky with the pico but could work with something lower power like an atmega or a nrf

#

You could use a high-temperature heat source to power it, either with a sterling engine or a thermopile

#

You could use fruit batteries. Strawberries are my favorite, though potatoes are the classic

#

Or a hydrogen fuel cell, I guess

low pelican
#

might as well make it gas powered too

red panther
#

gas fuel cell might be alright. Not internal combustion engine unless you want the noise

#

You could make it animal powered. A generator on a hampster wheel would be epic

low pelican
#

i figured there would be a circut or something that converts AC to DC and then i put something somewhere to step it down to where the pi needs it to be which boils down to a brick and a usb cable

red panther
#

You could also put a little propeller in the fish tank and use the recirculating currents to generate electricity

#

Shall we continue?

#

How about a treadle? Or a miniture turbine on a stomp rocket?

#

Or even gravity, like the grandfather clocks or those cool gravity lights

low pelican
#

have you considered a turbine facing the ac vent

#

idk i was just testing my options to see if i could make powering the PI more integrated but i mean if its just overly complicated id rather just use another outlet

#

anyway how can i figure out my total parts list ive figured i have angered you enough for today

red panther
#

I'm not angry, just exasperated. Please stop second-guessing yourself

#

And the hampster wheel would be epic

low pelican
#

that would be fun to watch

#

my current parts list contains the probe, pico, brick, usb, 5v relay, and extension cable. a piezo buzzer or a screen can come later

#

is that what i need? i have a feeling im missing something

#

i believe i massively over complicated it in my head or was too ambitious

red panther
#

Did you draw a diagram showing how the parts connect? I think it will help

low pelican
#

My hand writing is awful I'll translate anything that needs clarification 😭

past vortex
#

I am seeking help with my project id like to put together. In short it is a offline map fitted with a offline gps tracker and hopefully a bit for direction facing on the map. With three dials for horizontal movement, for vertical movement as well a zooming dial. I had on my list, three rotary encoders, a circular display, a gps module (not sure what to look for) a pi4 and I’m not sure what else I may need, the case was gonna be a small box that can fit most of everything effectively with a long battery life for its usage. This is before I actually start a cyber deck that I’ll do after with what I learn from this project

#

And I plan to use organic maps with the project

#

Thank in advance to anyone who helps

red panther
red panther
past vortex
#

Hiking, I’m gonna use it for when I need to know where to go out and about

low pelican
past vortex
red panther
#

You may discover why I recommended an SSR

red panther
past vortex
#

Would you care to elaborate the challenge for the battery and a bit on the gps, I ain’t got the keywords to know what to find to know what I need to know

low pelican
red panther
red panther
low pelican
past vortex
red panther
gritty birch
#

For something that is potentially safety critical, I would strongly recommend using a commercial product

past vortex
#

And the boot up, would It load slower cause of power usage?

gritty birch
#

Garmin, et al have really good GPS devices that will likely be much more reliable than your DIY map cyberdeck, will have better battery life, will be more durable, etc

red panther
#

But even Garmin Inreach only lasts 4 days

#

Disappointing tbh

gritty birch
#

a pi isn't going to last a day

red panther
#

I print my maps 😅

#

Ultralight

#

But anyway

#

Cool project and you’ll learn a lot

gritty birch
#

unless your battery is massive

low pelican
#

car battery powerd pi gps for ultimate longevity

red panther
#

These would be cool if we didn’t have a burn ban every summer https://www.bioliteenergy.com/products/campstove-2-plus

BioLite

Turn fire into electricity with BioLite's award-winning stove. Patented combustion technology creates a vortex of smokeless flames for a portable campfire that can cook your meals and charge your gear, all at the same time.

gritty birch
#

now if you did something with epaper and microcontrollers (or a zero family pi), you might have a chance of beating 4 days

red panther
#

Not the pico though. No good sleep modes

low pelican
#

perfect for the indoors

red panther
low pelican
#

maybe if i distance it right i wont need the heater and by proximity it would kep the tank at the right temp

red panther
#

Might want a pellet auger to keep it fueled

low pelican
#

ill add that to the list

red panther
#

In fact, just put the whole fish tank in a traeger

gritty birch
#

I don't think a betta will make good eating

low pelican
#

only one way to find out

red panther
#

@past vortex I don’t mean to shut you down. I applaud you for pursuing such an ambitious project and I hope it works out. Adafruit sells some USB power monitors which will help you determine how much battery you need

past vortex
#

I came here for some expert help on making the thing cause having a offline map gps thing would come in handy if I got lost with it

gritty birch
#

if you're set on using the pi, you can easily get a USB GPS

past vortex
#

Well the pi was my first choice, but I’ll do smth that’ll do the job well enough

#

I was gonna include a gps on the cyber deck but I scaled back a few things to be less up in the skies

high yoke
#

Hello! I have a question about minimizing power draw of the Adafruit Music Maker FeatherWing (VS1053). I have already implemented a function for my Adafruit ESP32S3 Reverse TFT Display Feather, but I notice power draw is still high (enough to discharge my 400mAh LiPo battery overnight).

I made sure to suspend all tasks on each core, turn off the TFT display, close SD card connection, and end AudioPlayer. However, the power draw during deep sleep is still much higher than expected. Is the reason due to the music feather being connected to the 3V power rail? Will cutting the reset trace of the music feather and manually asserting the music feather reset low help with power savings?

Thank you!

https://learn.adafruit.com/adafruit-music-maker-featherwing

Bumpin' tooonz for your Feather board

red panther
#

Maybe the SD card is still drawing power?

#

An environmental sensing team I worked on would use an RTC to shut off power to everything, even the microcontroller

outer cloak
red panther
inland summit
past vortex
past vortex
#

Okay after reviewing and looking around. To elaborate on funkymark comment, is there any circular epaper displays?

past vortex
#

What are some good cyber deck displays that feature no touchscreen, standard connectors, 1080p and I’m tryna to figure out the power

red panther
#

Why no touchscreen? You don’t have to use it

#

Also not sure what you mean by standard connectors

past vortex
#

HDMI and those

past vortex
red panther
#

So you want a portable external monitor, not a raw display

past vortex
#

I guess, what’s the difference between them?

#

I’m also trying to find out what I need to power a emulator for a few GameCube games and then go off that for computer power

red panther
past vortex
#

Is the raw display comparable to the screen on a usual desktop

#

Displaying the visuals the same, only different?

red panther
#

Yeah

#

I probably can’t help in finding an HDMI monitor - I usually work on the embedded side. But you might think about weight and physical dimensions in addition to your functional requirements

gritty birch
gritty birch
red panther
#

1080p on a round display is going to be interesting

#

Custom OS and apps?

gritty birch
#

maybe something on aliexpress, but I try to avoid that

past vortex
#

Last thing was a cool idea I had in mind

red panther
past vortex
#

Or passkey

#

But thankfully I did finally figure out a design idea… tho it just contains the vision rather than than part assembly

red panther
past vortex
#

I don’t follow

red panther
#

You have a round screen, right? But most OSes are made for rectangular screens. The search button in the lower left, the close button in the upper right, the time and widgets in the lower left

#

A round screen doesn’t have these corners. If such elements are desired, they will need to be somewhere else. You have the pleasure of deciding all of this

past vortex
#

That’ll be for the map thing, th square will be for the cyber deck

inland summit
past vortex
#

The cyber deck I want capable of running a note taking app, place to store files, access to the Internet, meshtastic node communication, and a emulator which I been directed by a comment on a reddit post I made to check the dolphin simulator site to see what it can run on and use that for my system

#

Image for additional context

#

Do cyber decks need to have rasp pi or is the equipment needed different on what is needed?

gritty birch
#

they absolutely do not need a raspberry pi, it's just a common choice because it's small, cheap-ish, and gives you a lot of flexibility.

past vortex
#

So what would be other possible choices?

gritty birch
#

Could be anything from an ESP P4 to an old sharp "pocket computer" to a raspberry pi to an x86 embedded board

#

The emulator you mentioned above means you probably want something ARM or x86

#

for example in x86, there's some options from radxa, hardkernel, dfrobot, or the aeeon UP line, and many more
for example in ARM, there's some options from radxa, hardkernel, raspberry pi, nvidia, and many more

#

There's no one right answer, so in the flood of maybes, lots of people do raspberry pi because it's small, cheap-ish, and gives you a lot of flexibility. It also has pretty good software support, which isn't guaranteed, especially on the ARM side.

#

ARM systems tend to be more power efficient though, so for if you're looking for something battery operated, it can be worth the effort

red panther
inland summit
red panther
#

Sounds good. If you want design critique I'm always happy to give feedback

inland summit
#

I have to get eagle on my fiance pc first. My pc is currently down

red panther
#

Eagle is going away, getting absorbed by Autodesk Fusion. Have you tried KiCAD?

inland summit
#

I have but its a familiarity thing I guess.

inland summit
#

Is there a tablet based pcb design app?

past vortex
#

I am downscaling or stepping back to deal with a less complicated build, so I’m shooting for a straight up GameCube emulator cyberdeck build. Simple and would have a battery with some basic controls for running what I need.

#

One of the games I’m going for is a classic game of Luigi mansion, wario world, SpongeBob BFB

buoyant jackal
past vortex
#

And running dolphin sim as well along with it too

#

But about processing power, anything with Android fit the bill?

inland summit
past vortex
#

What I heard another one mention using for what I wanted to do

#

Not sure if a pi can do what it needs to run the games id like to save on it

inland summit
#

I use a pi for retro arch. Its been a while since I booted it up though

#

I think it had trouble with anything ps2 or newer though

past vortex
#

How complex is it using retroarch?

#

As well getting new games added or set up?

inland summit
#

Not too complex really. If you go straight default its kinda plug & play. If you try altering things, it can become a bit more complex. All it really is is a shell of sorts. The cores are the various emulators that exist. Load one, select game, play. Might need to tweek controls to your desire & i had issues with wii controls.

past vortex
#

I mean, I plan to make the controls simple as uh… like a gameboy maybe, so it’s close to the GameCube button layout

#

unless that’s pushing it, but it would be nice to have smth I can download a game into, select and play.

#

Im trying to look around for ideas and how I can get a definite list of parts I need to get

inland summit
#

If you go pi, its a display you like, power source, controller of some kind & expanded memory. For anything else I dunno unfortunately

static mist
#

Triggering Actions on Adafruit IO

past vortex
past vortex
inland summit
# past vortex Are pi even strong enough to power a emulator for my small project?

Im not sure if it can power GameCube games as there are not alot of them that i play but when I get home I can boot it up & see. The pi is an all in 1 pc board so they are shoving alot into very little. You may need to find solutions to fix the issues I had. As for android, I do have an android phone. I can possibly test to see how it handles things

inland summit
past vortex
#

How am I gonna do that?

inland summit
#

ᚦat's where I can't help. Sorry.

viscid nexus
#

eInk Feather friend users - does the FPC connector "open", or is it simply an insertion connection. I have an extension cable coming tomorrow and don't want to mess things up!

Thanks!

wary dust
#

Answered in #help-with-hw-design . Usually wait on a second channel post unless it hasn't been seen for a while in the first channel. Cheers.

sage moth
#

so, I need to track the fluid level of distilled water, the problem is, I also cannot have probe contact with the water, the container the water's in is clear but has a rough surface (CPAP tank) my goal is to make it so both my partner's tank and my own tank are automatically filled with distilled water

#

I plan on buying a spare tank for each machine to facilitate the needed mods for hoses and pumps

#

the water level is the hard part

#

oh, found a candidate, non-contact liquid sensor that uses capacitance

fleet terrace
#

another possibility is using a strain gauge and measure the weight

#

although, that'd probably be more effective for the spare tank than the one in the CPAP.

sage moth
#

the spare tank's so I'm not modifying our only tanks, the cpap operation has me hesitant, also we'd need to secure the hoses off site in a way that prevents them from being a factor in the weight, there's also the fact it is basically a fan

#

there's going to be a hole and a sensor on each of the tanks, the goal will be to have a spot for a gallon of water with a hose in it, siphoned as needed by 2 of the Peristaltic pumps to avoid contamination

fleet terrace
#

a less reliable but also less intrusive way, would be to monitor the vibration of the machine and estimate usage by run time

#

(assuming usage is relatively constant)

sage moth
#

gonna make a bleh face as it is not

#

the heater engages as needed, I do not know Resmed or Luna's formulas for that

#

I have a Resmed Airsense 11, partner has a ReactHealth G3, so I'd need to calculate runtime based on both of them, honestly wish I could just use fluid pressure, but a fluid pressure sensor with accurate enough fluid detection would be a bit of a nightmare, logistically

red panther
#

Since the water is clear… what about those angular IR distance sensors from SHARP? Perhaps the diffraction of the water will give you a different distance depending on the water level

#

Sonar is a classic option too. Maxbotics has some nice sensors with mm resolution

sage moth
#

may be an option, yeah

#

restrictions I have to work with, any holes need to be secured in an air tight fashion, as an air leak would defeat the entire purpose of a cpap, must be medical grade, these are prescription devices and I do not want to grow any new life in my lungs, or my partner's

#

also, just peeked at r/cpap, seems the reservoir on my current unit is considered to be small and has left people without water and the smell of a oven (from the humidifier heater trying to cook without anything on it)

red panther
#

The capacitive approach is less invasive than what I proposed. And it sounds like you don’t need any high-resolution measurement, two sensors would be adequate: one for empty and one for full

#

Are you using the capacitive touch input from an ESP32?

lusty heart
#

Sorry if wrong channel. Question about the sparkle motion mini. Can I power it via the 5v pin? Or does it have to be powered by usbc?

red panther
lusty heart
red panther
#

The danger lies in accidentally powering your computer from that 5V pin if you plug the USB in. But pretty low risk imo

lusty heart
#

Mmm is that a risk? There’s no backflow protection built in?

red panther
#

There’s a 5A fuse, so that’s some protection I guess

#

I consider it low risk. More cautious folk might choose to unplug the second supply when programming

lusty heart
#

Oh. Yah I guess that’s fair. I’m not powering my lights via 5v so that works easily enough

cinder crane
#

Does anyone know if there are detailed drawings available for these letters? https://www.adafruit.com/product/6206

The data sheet has the outer envelope, but I'd like to make a cutout for them that fits them snugly.

#

Worst case I can buy what I need and scan them, of course.

inland summit
#

I dont want to buy 5 pairs & have 4 of the female sides just collecting dust

buoyant jackal
inland summit
#

I found female only. Everything else is pairs.

sage moth
inland summit
cunning saffron
inland summit
#

So ignore it

cunning saffron
#

yes... it won't provide any power, and if you put a signal on it, it could mess things up (though from the schematic it looks like they just wire AREF to VDDA anyway)

tiny hill
#

I'm new to motors and trying to do a 'hello world' with a L298N driver and a 3-6V motor. The idea being a key press causes the motor to move (I'm not there yet)

Why can motors make a quiet buzzing / humming? Underpowered? Code issues? Other?

buoyant jackal
#

What motor voltage are you providing? What voltage is being supplied to the motor? (Measure with a multimeter.)

#

There are better motor drivers

tiny hill
coral urchin
red panther
#

Four AAs should work though. Or you could power the motor off USB

buoyant jackal
#

Could you give a link to the motor you are using, and also the motor driver board?

tiny hill
#
The Pi Hut

The original motor driver board used by thousands of makers across the globe! The famous L298N has become the default starting point for new makers learning robotics thanks to its simplicity, robustness and low cost.

#

Raspberry pi zero 2

azure spire
# red panther The insulation support will still be a little tight

FOR POSTERITY:
22AWG stranded fits in the JST PH connector, but only just.
The crimp on the conductor works well but the insulation will be come too wide if over squozen. I think the trick may be to do a light crimp on the insulation and maybe reinforce the hold with a thin adhesive.
Interestingly enough I found an old premade harness from adafruit/digikey and they used 22AWG in the connectors.

inland summit
#

Ok. So if i wanted to make the 2 charge board to be turned off with the same button, I would need to wire the from ground to switch pin then from the switch pin to a gpio on the pico right? With a resistor to 3v3 somewhere along the way?

#

Then I would need to just write a code that tells the pico how many presses controls which board

inland summit
#

Better question: im wanting to use a single cap touch button to control the whole get up. I want to be able to power it all off with a hold press, turn off rumble with a single press & reset the board with a double press. How would I pull that off without constantly draining the battery & without having a second microcontroller attached to the sensor

red panther
#

The power draw of the rp2350 might be an issue though. I think it’s 2mA when sleeping, which would drain a 500mAh lipo in 11 days

#

I’ve never tried disabling the regulator or holding RESET low

inland summit
#

I was looking @ taking this (https://www.adafruit.com/product/1375) and trimming off the touch pad. I could then wire a piece of brass to it. The plan is to have the 3 light pipes for the boards leds arranged in a triangle formation with the brass touch button in the middle, replicating the triforce from zelda, using thermoplastic to get the end caps for the light pipes

inland summit
#

Unfortunately those may all be too big & are a hit of a waste as I only need one button. Thats assuming the button can wake up all 3 boards

#

Ultimately im hoping to develope my own final board by stripping away what is unnecessary so extra touch leads are more hassle there too

buoyant jackal
inland summit
#

Id have to make a custom cap for it. It might fit, but id have to make a dummy board to know. Luckily I have plenty of bakelite protos & copper clad

buoyant jackal
#

which microcontroller are you using?

tiny hill
charred river
#

hi, new here, not quite sure if this is the correct place to ask for my topic, but ive gone thru an L298N and 2x TB6612FNG in the process of making an rc car. ive troubleshooted like everything i could and it still doesnt match.

my most recent issue is a leak but ive went thru all my soldering with a microscope and the only potential issue i see is a high resistance bridge caused by carbons.

#

usually it looks like this and then the one with those small dust isnt even causing a problem (not a real microscope lol but it works)

buoyant jackal
azure spire
# buoyant jackal thanks for the followup!

To be clear, do not do this, get the specifie guage, this was a pain in the tuchus. I stripped down some spair ethernet jumper cables (stranded 26 AWG) and it saved me much consternation. One more thing, the recommended adafruit crimpers, PA-21(https://www.adafruit.com/product/349), are maybe just a bit too big for 26 AWG. PA-09 might fit this range better.

cold sigil
#

I have a EE question W.R.T using an Adafruit RS232 Pal or Two Channel UART to RS-232 Level Shifters (MAX3232E). I have my PicoW pins 1 & 2 (GP0 & GP1) connected to the LV T1 & R1. The HV T1 & R1 are connected to the data side of an RS232. There is a common ground from PicoW pin 38 to the MAX3223E ground and then to the RS232 Ground. Here is the important part: the PicoW pin 36, or 3V3 out is connected back to the MAX3232E on Vin (Voltage Input). The PicoW is power solely by the microUSB from my Tower's USB connector which is or near 5 Volts. Everything works fine!

However, my Client has powered the MAX3232E from the a motor controller which supplies 5 Volts, then connects the power to the PicoW pin 40 (VBUS 5V). NOW, Here is the question: Is this a valid and effective alternative wiring. We seem to be having some issues some of the time. I guess I would have powered the PicoW straight from the motor controller and kept the serial side of the connection to pin 36 or 3V3 out on the PicoW.

Any advice?

red panther
#

The MAX3232 can handle it, and there’s no trouble on the RS232 side. The problem is with the logic levels between the 3.3v pico and the 5V powered MAX3232

#

The MAX3232 will expect at least 2.4V for a high signal, which the rp2040 IO might not always provide. What’s worse, it will put out 4.9V directly to the rp2040, which the chip may not withstand for long

#

Of course, there could also be noise injected from the motor controller

#

You should look with an oscilloscope and see what’s actually happening

cold sigil
#

I'm now re-wiring to power the picow directly from the motor controller on Vsys using a diode. Then I'll connect the Picow to the level shifter using the 3.3 out only. Hopefully, the picow will only see the 3.3 TTl signals. Thanks for confirming!

inland summit
#

I need quick advice please. Enable pin to ground creates a power switch correct? Can't remember for sure

inland summit
#

& can a socket be wired to 2 pins simultaneously

buoyant jackal
buoyant jackal
inland summit
#

I am making a simpler version of my bt adaptor. I want to be able to turn the board off

inland summit
buoyant jackal
inland summit
inland summit
buoyant jackal
inland summit
#

Ok. & that does what exactly ?

buoyant jackal
#

shuts off all 3.3v power on the board. So the microcontroller, and any other 3.3V power consumers (I2C sensors, NeoPixels, etc.)

inland summit
#

So it shuts off the n64 controller but not the board itself?

buoyant jackal
#

Another example: Fruit Jam: power switch controls a FET that interrupts the 5V power:

#

there's a similar circuit on various Metro (Arduino-shaped) boards that interrupts the barrel power jack

buoyant jackal
#

so 0.3a (300 mA) max

inland summit
#

Will it work? Or will it cause issues?

buoyant jackal
#

What is the power consumption of the board?

#

the toggle switch can handle 6A at 125V, so no problem whatsoever.

inland summit
#

I think its says 600ma @ 5.5v

inland summit
buoyant jackal
#

The EN pin shuts down the main 3.3V regulator. There is another 3.3V regulator for Peripheral Power Control. And also V_BATT and V_USB are passed to pins.

#

how are you powering the board?

inland summit
#

Lipo

buoyant jackal
#

you could just put a switch in series with the +V LiPo line

#

that has the advantage of removing voltage from everywhere

#

so no pins remain powered, etc.

inland summit
inland summit
buoyant jackal
#

does the SparkFun board have a battery socket?

#

yes it does, i see

#

The Thing Plu board are basically Feathers

inland summit
#

I couldn't find a feather board that had the newer pi chip, usbc, & built in charging that could fit in the rumble pak case. Turns out I still didnt

buoyant jackal
#
inland summit
#

If i understand the description thats what it says

#

Now, I may have to rewire a bit. Im not sure if the code will work on Pin A0. So would it be possible to just add a wire from A0 to another pin altogether rather than desoldering what's already there?

sage moth
#

Rework wire is worth it

inland summit
#

I do have 1 more resistor so I might be ok. But that means I cant make another adaptor

sage moth
#

Bodge wires are usually 30awg

#

I'd worry if you do need resistance at a certain value but 30AWG is enough for a logical 0 or 1 on address lines

#

I need to find my wire wrap tool

buoyant jackal
buoyant jackal
inland summit
#

I dont need a uf2 file to add code to the board do i? I can just drag & drop the code files directly yes?

#

I also can't figure out how to change the output pin

inland summit
#

I think the code is c++ which im unfamiliar with

inland summit
#

I can't get this to work @ all. I tried to install the uf2 via my phone but its not connecting. Does the uf2 need to be board specific or something

buoyant jackal
desert bane
#

Hello all, I'm trying to program a transmitter which is using WiFi to connect the transmitter with my shipmodel. Both have a R-Pi4. Currently I have a program which is 85% of what I need to control the propulsion with a lot of basis for all the additional functions.

For handling commands my father suggested using FastAPI which I'm now trying to combine with the CircuitPython program I mentioned before. Can the FastAPI and CircuitPython code be combined in 1 program? For some reason it keeps killing itself saying the Board library is not installed which is definitely not true. Both FastAPI and CircuitPython run in the same virtual environment which I setup while following the suggestions on the Adafruit Learn section.

If this is solved I'm very close to being able to control the ship model, I only need to convice the code for the transmitter to actually send the commands and then expend this to send all commands when something changes.

buoyant jackal
desert bane
buoyant jackal
#

Note that you normally need to use a virtual environment on the newest versions of Raspberry Pi OS. Also note that installing via sudo pip vs pip is a bad idea.

desert bane
#

I had to work around both sudo pip and pip, using python3 -m pip install --break-system-packages adafruit-circuitpython- instead. Otherwise, nothing accepted installing

#

This is a fresh install

buoyant jackal
#

did you try the latest version of the install script as described in the link above?

#

if you are on Bookworm or later, you need to set up and enter a venv, and then run pip

desert bane
#

I did indeed, though SSH was not working so I had to type everything manually

buoyant jackal
#

so you're saying that our all-in-one setup script did not work?

desert bane
#

I did first setup the venv

buoyant jackal
#

and how did it fail?

#

did it run to completion or did it raise errors?

desert bane
#

The FastAPI part runs perfectly and then it comes up with ModuleNotFoundError: No module named 'board'

buoyant jackal
#

if you did not install Adafruit-Blinka in the venv, and you are not now in the venv, then import board will not work. do pip list |grep Blinka to see whether it's installed. pip list will list everything installed via pip.

#

board is part of Adafruit-Blinka. If it's installed then you will get that error.

desert bane
#

The strange thing is that before I installed FastAPI the program without FastAPI worked perfectly

buoyant jackal
#

how did you install FastAPI?

#

are you in the venv now? You can tell by doing which python.

desert bane
#

I don't recall precisely, pretty much like installing any other library, might have been with break packages

buoyant jackal
#

For instance, I normally run in a venv named .py:

$ which python
/home/halbert/.py/bin/python
desert bane