#general-chat
1 messages · Page 50 of 1
I mean if aircraft have 32-bits 80 GhZ ADC there must be a reason
They usually have custom analog front ends that feed into an FPGA or ASIC specifically for image processing
Ive been trying to find a list of package sizes that have adapters on adafruit or are throught-hole or throught-hole like (like TQFP)
do you know of one or Id have to make one ?
You’d probably only find them for TSSOP/TQFP or similar packages
Also, looking on Digi-Key, the fastest 32b ADC only does 1Msps
The faster your ADC, usually the less resolution you can deliver
Looking on adafruit site they have adapters for qfn and the like . But these are pure SMD for me since they dont have legs
The fastest ADC on Digi-Key is 26Gsps and it’s resolution is 3b
as long as it has legs I can easily solder it to wire without an adapter that's why Id like to make a list of it.
TQFP with 12 legs per side starting to be too many legs though
do adc that are for rf transceiving count here (bits varies per frequency inputs 12 gsps output 2.6ghz) or are they different products ?) like this: https://www.analog.com/media/en/technical-documentation/data-sheets/ad9082.pdf ??
RF specific ones are different, but most people who develop high end RF systems tend to be weary of high bit resolution since it’s unlikely on input that 2 extra bits will really give you any difference in performance. Hence in this case, 12b ADC vs 16b DAC
I’d gather that most would rather spend the money on good preconditioning their analog inputs rather than trying to add more bit resolution over 12b
Also that ADC/DAC is like.. $1800
Hmm I wonder if I could get a free evkit for it
I imagine you could walk down the hall and find one on someone’s desk to borrow
Or maybe even find one in the same lab
Of course not borrow for personal use 😝
how do you actually know what resolution you need. Like Im seeing that 14/18 bits have a resolution of a couple of microvolts where as 10/12 bits is almost 1 milivolt. Obviously if you build a test equipment it's obvious you need to beas much resolution as possible. But medical stuff uses like a couple of milivolt so 14 would probably be suitable where as analog music disks would probably works with 10/12 ?
And I like to compare the best stuff to what I canm actually get to keep feeling like Im a the bottom of the pyramid and getting the worse stuff / 1970s surplus DIP chips 😦 🤣
Well, considering most of these chips are being used in high power transceivers.. I doubt you need much better than millivolt resolution
The ENOB (effective number of bits) is always lower than the resolution of the ADC.
Which is why chasing bit depth can be a fools errand when there are often better uses of time and money
Like good preconditioning
but what if the phenomena you are trying to measure is actually in the microvolts range like heart voltage ?
obviously you wont even be able to measure it without a good enough resolution
Then you’re not using a 1Gsps ADC anyway
You’re probably using something closer to 100ksps
That's where preconditioning comes into play. You would amplify those signals before feeding them to an ADC.
There’s not really any point in using a good ADC if you’re not going to precondition your signal to be usable.
You’ll end up reading mostly noise at that point
sure but you have to know you are actually getting signals first
maybe an heart is a bad example for DIY because obviously you will build the device very theorically until you actually connect it to someone
And medical interfacing can be quite dangerous. However to know you're getting signals first, an oscilloscope is usually a workable way to start out.
But I tend to work in a waterfall/proof of concept way. ie: do I get any signal? yeah, ok try to pre-condition it, what do I get? do I need to add shielding etc
I use a similar modular, divide and conquer approach. Build a stage at a time, seeing if it's viable at each step.
I dont quite understand how medical devices works for liquid. Seems like they actually drop a very small quantity on the chip directly with tubes inside them
and then they use boiling water with a detergent to clean it up/evacuate the liquids from inside after that or something
There are several approaches, but some do just etch a channel into silicon and feed the liquid into it
At some point though you will need to lay theoretical groundwork.
The chip based ones are disposable, so no need to wash them. The big industrial washable ones use much larger and more complicated (and expensive) assemblies.
As always, I suggest starting small (paper chromatography is simple and inexpensive enough children commonly do it, and yields scientifically useful results)
For the curious: https://www.thebestideasforkids.com/coffee-filter-chromatography/
Armed with the knowledge of how simple paper chromatography works, you have the basis for understanding electrophoresis, gas chromatography, Northern blots, and a host of other scientific techniques.
That’s a neat approach to learning about chromatography
feather is larger than my gearbox, haha. when you are modelling on screen you lose track of just how tiny the object is in real life
is there any documentation for tiny usb
yup, there's a reason why devices that come into contact with the body are a separate class of medical device
In the EU, even software that analyzes biometric results (with the traditional meaning of the term, not the authentication-related one) can IIRC fall into the medical device regulation
hm. can you wire a pot to 2 devices? i want to read the servo potentiometer with the feather, as well as having it read by the servo controller. Not sure if that will have any effect on the reading
It's a good year for marionberries.
yay berries! :D
Boy
52lbs picked in under an hour.
(that's about 23.6kg)
[I had to look it up, so I'm noting it here to maybe save somebody some time]
Nice! :D
I see pie in the future
Cobbler
Handpicked? Gg
Yeah
That's some nice and practical fortune telling right there; "I see pie in your future" :D
I wonder if you could like repurpose a vacuum cleaner without destroying the berries
52lbs! that like... 26 pies! or, 2 meals!
Eating 2 meals of 10kg of berries each sounds like a good way to guarantee that your bowels will have a good, long talk with The Bowl
It'd be an hours-long monologue. Been there, done that.
I can relate to this. I kept working on my custom board for a project (should be arriving Monday!) and constantly thought "This thing is going to be so huge!"
Then measured the board. 30x66mm
Oh. That's positively tiny. Obviously could be smaller if I packed the components tighter, and used SMD, but it still fits in the palm of my hand.
it is the size of my head on screen.
ha
reminds me of 3d printing in general. you see macro pictures online and see all the flaws, print lines, stair stepping. then you get the thing in your hand and its like, oh, i can barely see the threads
Pretty much the same idea with this. 24" widescreen monitor, board is like a foot long on screen so you can see all the traces.
Then you add the measurements on the comment layer. Then it still doesn't sink in so you pull out a ruler and see for real how small it is.
Like, intrinsically I know how small a DIP-8 is. But it's not until you're holding it that you fully grasp how small it is. Then you remember there's smaller.
yeah
oh there's always smaller chips, cpu's are at like 3nm now.
is there any way to emulate a USB controller on an ESP32-S
im making 0.1mm fillets going "hmm, that seems large" not realising that on a print that is basically a sharp corner
i mean there has to be a way but like does anybody know of a way
without writing PIO assembly preferably
I don't know much about USB stuff, do you mean like a usb host controller? adafruit has some usb host boards now.
That's the bleeding-edge-currently-in-development stuff.
i know but i already brought the ESP32s thinking i could do it
i have 2 RP2040 boards that can do it
but i cant wrap my head around the Pico SDK
it confuses me every single time
i know there is native support on the ESP32-S2 but i dont have those unfortunately
I don't think PIO would really be capable of implementing a USB host controller. Too complex.
If my design ever gets to the point where I can sell it (small scale sales) I'll settle for just the SOC-8 version of this chip. No need for the miniscule QFN version
what is the esp32-s? an adafruit board or different manufacturer? i'm unfamiliar with that one.
From a packaging perspective I believe QFN is efficient and cheap to manufacture
so idk
afaik there are no 3nm consumer chips on the market atm, right?
the ai thinker esp32-s?
yeah, that tracks, IIRC QFN takes hours to package
espressif make the esp32
Also I look at my trace width, and keep thinking "is that really wide enough?" Kicad assures me that a .25mm trace is sufficient for .8A, well above my needs.
i think
that is correct
Apple might be using it.
Maybe, but at the same time SOC-8 is listed for $1.65 each, QFN just over $2
well either way, i need to figure out a way that i can get USB Device HID working on it
so any suggestions are welcomed
Either way though, I won't be assembling it, so it's not even a matter of that.
original esp32 from adafruit they call the huzzah. i'm just trying to translate it to an adafruit equivilent to see if there's usb host on it... which i don't think there is.
You could probably bitbang usb from the esp232. It wouldn't leave you time for much else though :P
i know its not natively supported but surely with like 2 cores or whatever i could write a hardware abstraction layer or something that would let me interface with USB over serial
wait
actually
what if i use one of the cores
to emulate a usb controller
i think they used serial chips and not native usb back then?
why don't you get an FTDI dongle?
yeah FTDI is what i was thinking
to do it natively you'd have to make a custom board and by that point would just be easier to buy one that has the features you want. :/
unless you want a custom solution and big project, i mean that's up to you.
well im going to build my own boards at some point but i cant find a good dev board with the right things that i need
its annoying
i preferably need a fast processor like the ESP32 at 240 MHz so it can crunch through very fast
i need USB support like the RP2040
Not knowing/understanding something doesn't make you stupid.
and WiFi
s2, s3, c3
i know but i've probably already read about them somewhere
so basically all the ESP32s except the one that i brought
got it

yes unfortunately.
i totally shot myself in the foot
the original esp32's can be run on wippersnapper and adafruitio.
i did the same thing and was like welp...
Nah, you aren't stupid, just a beginner.
In any case, the FT232RL is a chip made by FTDI (Future Technology Devices International Limited), which takes in serial data and then transmits them to the computer as an USB CDC (Communications Device Class) serial peripheral.
the annoying thing is now that i have to wait a week because i spent all the money i have in my bank account and i maxed out the amount that im allowed to deposit a month
then wippersnapper came out and was like voila a great use for it.
It happens. I ended up buying like 3 wire packages trying to get one that I could actually make proper cables out of.
fair
So, you talk serial to the chip, and the chip transmits the data to the computer as an USB serial port
First one had too much insulation, second one had too small cores, third one seems to barely work.
because i absolutely hate the PicoSDK with a living passion
yes. earlephilhower/arduino-pico. It's great
it is deporable
okay thank you so much
i'll use this
because the pico sdk is so confusing
not the code just the location of all the header files
some are in pico/this
some are just this
and im using platformio which is amazing for arduino code
Arduino is less a programming language itself, and more an environment. The more important thing is "can you get a compiler for your target"
now i gotta find a use for the 3 ESP32s i have
i know but its more familiar
to me
i mean if you wanna see what im trying to do then i already wrote it all in python
but i had a much better idea
that i unfortunately cannot do in python
i've never used pico-sdk, nrf sdk, or esp idf. i stick with circuit python. the devs do all the work porting the code to a single language and i get to code in the same way on like 100 different boards. that's honestly one of the most underrated things about circuit python. i mean arduino is like that too but that's just preferernce.
because its too high level
well i wrote this project in circuit python already
Personally I don't like Python just because I don't generally like whitespace sensitive languages.
its there already
but like i dont like it
because its too slow
i know i can make it faster
ah the ducky, yes quite a popular one too.
hence the need for usb host
i stole one part of it, in my defence i credited the guy i stole it from
but like its amazing
web interface
code editor
you can run scripts on the fly
enable disable auto run
change the SSID name and password
all without editing code
from a web interface
it was so annoying to code to begin with but once i learned python it was easy
i didn't know you could use C/C++ else i would have done that to begin with
there are many different versions of it out there in pretty much every programming language
yeah i know but i dont want to code it because i want one
i just wanna code it to see if i actually can
not about the use more the satisfaction of making something that works
If you want to do the ducky stuff (script actions) on your local machine without an accessory that could potentially be considered a crimetool and expensive external hardware, it might be best to just learn autohotkey and be done with it
and then i know my code base so if i want to add some cool functionality then i can
i think there's a learn guide on it for circuit python now too. maybe check out the hardware they used.
its not illegal where i am, i already checked lmao
That's half the drive on my current project.
"I want to learn how to program raw microcontrollers"
"I bet I can read this shift register."
"I bet I can make a whole circuit board"
"Ha ha ha! This thing only exists because I deemed it so!"
the annoying part is that i dont have much technology besides my PC and some micro controllers so i cant really build cool things
i think im going to buy an OLED display for my micro controllers and see if i can do something cool with that
https://learn.adafruit.com/neo-trinkey-circuitpython-rubber-ducky i don't think that one has host on it though
i mean i have the basics like resistors, caps stuff like that
see but with mine you can plug it in, move away very far and edit and customise scripts on the fly with your phone that's why i like mine
i find it cool
everyone elses is cool too
but like idk
i'm not sure if anyone's done one with an adafruit usb host device yet though.
is that software or hardware
pretty sure they have a relatively new piece of hardware.. within the last couple months.
omg
i can use SPI
SCI
i cant remember the abbreviation
i can use that to interface with USB
i remember watching something about it the other day
you see, this is exactly what i mean
has everything i want
except one thing that is a complete deal breaker
doesn't have wifi
ah i see yeah lol
imagine that with a USB A male on one end, USB A female on the other
with wifi
and an SD card slot
well it's a feather right... so an airlift featherwing would give you wifi
i'll just have to design my own
oh yeah, what are these
i have them on my board but idk what they do
built in antenna
for what
wifi
if you want to design your own board then you can get just the module https://www.adafruit.com/product/4653
is it SMT or can i hand solder it
combine it with the schematics from the rp2040 feather usb host board and voila...
usually oven reflowi think definitely not hand soldered
oh shucks
modules are for advanced board designers really. have to work your way up to that kind of thing.
They can be hand soldered, but it's a pain in the butt.
or that yes
but it will definitely scratch that itch
or i can just use a hot air station
i have one of those
send the design off to jlcpb or pcbway or oshpark etc...
yeah
well i wanna get a few things made
like an RJ45 male to female but with a wifi chip and a microcontroller built in
so i'll just have to make some board designs up and send them off
Pcbway allows up to 3 orders a month where they offer assembly for only $30 instead of the normal fee of like $90+
Or for people incorporating them into products without needing to do the RF work and associated regulatory compliance.
noted
also cyber city circuits is good with that kind of thing, depending if you're in the USA, they might offer a design service where they might do consulting, for a price.
are these the ones with USB Host
they look similar to the ones i ordered but they're not the same
looks like a slight variation on the classic esp32 you have, you'd run into the same issues.
nuts
esp32-wroom is generally classic esp32
does the C3 have usb host
i don't know, you'd have to look up the spec sheet. half of engineering is honestly just your nose buried in spec sheets.
lmfao
noted
also wanna see something
truly
annoying
look at this
i can only use a single row of my mf slots with the esp32 on it
when i get paid onto my card im buying a bigger bread board

you can hook two breadboards together
i dont have 2
Time to start running jumper wires under the board.
its just flat plastic under there
imma just buy a new board
and some new Micro controllers
god i've already got 5
and i can only use 1 for what i want to
this is the one i have, love it. https://www.adafruit.com/product/443
but it doesn't have headers so i cant use the pico probe
alright I just deposited cash in my account, what board can I get that has WiFi, Bluetooth / ble and USB Device
preferably duel core
Do you need classic Bluetooth or is BLE enough?
ive ordered the ESP32-C3
I read up and apparently that works
ughhhh UHF circuit design is hard and far above me
but I don't wanna wait until I'm in higher classes
anyone know where I can get a micro USB male to usb male adaptor without a cable inbetween
acc nevermind
male (micro usb) -> male (usb A)?
'cause that's just a standard micro usb charging cable
if you want male (micro usb) -> male (micro usb), you can grab some heatshrink and make your own in a pinch
I think I’ll stop paying my credit card bills next month and let it go to collections I felt sick giving money to these subhuman scum
O_o
I support not giving money to credit-card companies, but the time to make that decision is before you use the card at the store...
yes
yes
ik bit without the wire
so you want (male micro usb) -> (male usb A)... NOT as a cable, but as a solid adapter.
That MIGHT exist..?
18650 battery holder for feather and servo power. should last 6 months or more. now i need a nice micro water proof connector set for a 4 conductor wire. hmmm.
yes
if it doesn't I'll just butcher a cable and make one
what are you building?
secrit. little serve drives a worm gear when you press a button. so i need 2 buttons (3 or 4 conductors). and then the battery with a temp sensor. so i need a little universal cable connector end.
the system i am copying uses 2 conductors with can bus and power shared. but thats too advanced for my current testing
if you are going to lie this much about batteries, dont name your company ever fire...
I used a headset audio cable for a data cable for one of my projects. TRRS has 4 conductors, is pretty common, and even includes the abilty to spin around.
The only problem I had is that the conductors are poorly spaced/shielded. In my case I was running two channels of Neopixels, and if I repeatedly sent data to one, but not the other, it would corrupt the second channel. The solution was just to always update both at the same time.
headphone connectors are bigger tham my device
ha
also too easy to fall out and poor reliability, not waterproof, etc
thats 2 can bus version
I question how much strain you're expecting if a headphone jack falls out "too easy" I swear you can hang like a couple pounds off a 3.5mm connection.
snap in, but can be pulled out without damage. water tight
If you use these on an insured device, and it catches on fire, you'll be sure insurance won't be paying out
a lot of strain
"What did you expect? You bought EverFire-branded batteries!"
anyone any thoughtsd about solder paste witha hot air gun or an oven? I currently use an oven that does well, but there's a thing I need to solder soon that will require the rest of the board not to get too hot
Solder paste and a hot air gun is pretty common. Especially for repairs. I would expect it to be fine for small scale assembly too. Just make sure to not dwell on a single spot too long.
$39 for a single samsung battery locally. vs like $3.99 ifrom china. sigh. but i dont trust any of them to actually be real samsung
On funny thing I learned about python is that the self word used in python classes can literally be any word.
yeah, I was using my kiotchen oven just fine but I don't want to melt a compoinnent but the pads on it need paste
Promote cursed computing. Start using this instead.
for instance:
class Test():
def __init__(me):
me.first_name = ""
me.last_name = ""
def printme(me):
print(me.first_name + " " + me.last_name)
it's perfectly valid
randomly switch between ich moi and 私 to add international flair to your code
lol
def __init__(thevoicesinmyhead)
Make sure to add 之 somewhere in the mix :P
this thing to be precise
pylint does complain about non-self:
me.py:2:4: E0213: Method should have "self" as first argument (no-self-argument)
Seems like pylint is just picky about it. First tutorial I found says you can use other things, "but it is advisable to use self because it increases the readability of code, and it is also a good programming practice."
void loop() {
boolean success;
uint8_t uid[] = {0, 0, 0, 0, 0, 0, 0};
uint8_t uidLength;
success = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, uid, &uidLength);
if (success) {
Serial.print("UID Value: ");
for (uint8_t i = 0; i < uidLength; i++) {
Serial.print(uid[i]);
}
Serial.println("");
delay(500);
String uidString = "";
for (uint8_t i = 0; i < uidLength; i++) {
uidString += String(uid[i]);
}
Serial.println("Making a GET request");
String requestPath = "/NFC/add.php?uid=" + uidString;
client.get(requestPath);
Serial.println(requestPath);
int statusCode = client.responseStatusCode();
String response = client.responseBody();
Serial.print("Status code: ");
Serial.println(statusCode);
Serial.print("Response: ");
Serial.println(response);
if (response == "1") {
Serial.println("NFC card not recognized");
} else {
String values[3];
int startIndex = 0;
int endIndex = 0;
int valueIndex = 0;
while (endIndex >= 0) {
endIndex = response.indexOf("|", startIndex);
if (endIndex >= 0) {
values[valueIndex] = response.substring(startIndex, endIndex);
startIndex = endIndex + 1;
valueIndex++;
}
}
values[valueIndex] = response.substring(startIndex);
Serial.print("Name: ");
Serial.println(values[0]);
Serial.print("Post: ");
Serial.println(values[1]);
Serial.print("Card ID: ");
Serial.println(values[2]);
Serial.println("Wait five seconds");
delay(5000);
}
}
}
hello, so am working on this little project and i need to display some info on an adafruit screen, but i dont seem to understand how to display on different lines, for exmple i want the name to be on top, then the post to be in the middle and the cardid to be at the end. thanks
https://www.adafruit.com/product/1651
i bet you can use the Adafruit_GFX library for that
https://learn.adafruit.com/adafruit-gfx-graphics-library I recommend to read this tutorial from the beginning. At some point it will mention how to do text and how to put it in a specific location 😄
always check out the guides linked under adafruit products 😄
Yeah, you're putting everything out to the serial connection. You need to use the GFX library instead.
Also I'll give you a head's up, putting text to a screen is a lot like putting it out to serial. Major differences being that you get to pick the colors, and where the text starts from.
i messed with some .Net devs working on a Python project when I was refactoring (e.g. fixing) and renamed self, to (coincidentally enough) elmo
This is hilarious
Like the rest of the language, self is just a loose convention. Instances are always passed as the first positional arguments in methods.
If you really wanted to mess with people, you could name it none.
renames super in java to hyper cuz hypernovas >>> supernovas
woo. stainless 3d print in use. haha
I write python and sometimes wonder what we will be thinking of python in the future
Also, since scripting languages are kinda sorta known to come and go in waves, I wonder what the next scripting language du jour will be
(except Tcl. This one will probably outlive humanity, much like roaches, thanks to the power of All The EDA Companies)
Tcl (pronounced "tickle" or as an initialism[8]) is a
https://en.wikipedia.org/wiki/Tcl
I hate that Tcl can be pronounced tickle
Tcl (pronounced "tickle" or as an initialism) is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful. Tcl casts everything into the mold of a command, even programming constructs like variable assignment and procedure definition. Tcl supports multiple programmi...
How can i fix the Unable ot load content privatley notification on the iPhone mail app. I have tried everthing but nothing is working.
I also hate that it’s called tickle.. it makes me uncomfortable because I hate being tickled
I just say "Tee See Ell", similarly to how I say "Ess Queue Ell" and not "Sequel" for SQL
I say Tee See Ell as well
TIL there were famiclones (famicom clones) that ran a version of DOS a DOS-like system and accepted floppy drives
UPDATE: A Discord is now available to talk about Zeal 8-bit project! Feel free to join: https://discord.gg/UzEjwRvBBb
Hello guys!
Today, I would like to propose a special video about a rare Chinese 8-bit computer from 1998, I bought in brand new condition!
Half-famiclone, half-8-bit computer, is it any good in both?
Find info about Zeal 8-bit...
I'm reminded of this thing that was available for the N64. It was ostensibly meant to let you play VCDs on your N64, but it just happened to be able to dump N64 roms from cartridges, save them to a writable CD, as well as load said roms for playback, but this was totally just a coincidence and you really shouldn't do that.
ah yes, the bung doctor v64
My lemon is coming back ❤️
It had a rough winter, losing all its leaves. But I didn’t give up hope
Finally felt okay putting it outside last weekend
the miracle of lime!
The best part is it actually flowered before it lost all its leaves meaning it’s mature enough to produce fruit 🙂
And my coffee plant that has been on a slow recovery since last year in the spring where a city water change essentially poison it and it’s sibling plant who sadly didn’t make it
It was very bushy before. It nearly died
Wow, that's some mad dedication
Nice!
This is tricky. meyer lemon cutting will flower and fruit in the first year. Ideally you are supposed to pruner the fruit for the first 2 years or so
Yeah, I let the flower fall off
I’ve grown citrus before, I’m not expecting fruit for another years or so
one of mine was grafted whihc is supposed to make it more durable. (flying dragon root stock). but the ones from cuttings grew quite well
Yeah, that tracks
The root stock tends to help constrain size though. Cuttings will often grow to the full size which for Meyer lemons can be 3-4m
that too yeah
my peach tree will get up to 25ft if you dont trim it
i need to keep it under 8-10
it grew well this year. tonds of branches spreading wide. 2 ft of new growth each branch
the plum has just started growing. weird, i assumed it would do branches in spring liek the peach
My parents have a pear tree that I planted that I have them keep to 8ft tall
It’s grows massive softball sized pears
It didn’t produce but one pear this year though because of a late frost
wow
when i do the back yard ill move the plum. put a second peach in front. and put another plum and 2 apples in the back. and maybe a pear.
They also have two nectarine trees I planted, only one nectarine off those due to late frost
ah
yeah we had warm early on and then frost. i thought all the peaches would die
but i got at least 15 on there
over 1.5" diam now
And there’s 3 grape vines, a concord and two Catawba
mmm. i wanbt a concord vine. not sure where to put it yet.
And a Macintosh Apple tree
side of the house is ideal, but it may get disrupted in construction later
my apple is granny smith
i want a golden delicious as well
Oh wait almost forgot about the dwarf cherry tree. They get about a pound of cherries a year on it
ha
It grows basically as a cherry bush
My coffee plant I’m waiting till it has another strong branch to start into another coffee plant.
I know that macintosh is an apple cultivar (from which the apple machines got their names), but the phrase "macintosh apple tree" never fails to make me chuckle a little
Lol
O_o
the mac computer was named after the hamburger, cause steve jobs ate it every day
tim apple confirmed this on twitter to it must be true
hypothetically
if I want to make a smartwatch with programmable apps written in a custom coding language
would it be better for me to:
a. compile to some bytecode I make up and interpret that
b. compile to native machine code for the microcontroller, and load that into memory and run it
advantages of a:
-probably much easier to make
-easier to port to a different microcontroller if I change the watch design for a future version / iteration
-I can implement whatever sandboxing I want obv
cons of a:
-worse performance
-harder to ensure it has access to all necessary features
pros of b:
-better performance
-should be able to access most important stuff more easily
disadvantages of b:
-waaaay more work to make
-super difficult to port to a different microcontroller architecture if I ever switch in a future iteration of the watch
-impossible to sandbox so the apps might break stuff
what would you guys suggest?
I don't think there's really any need to invent your own virtual machine. That's complicated enough even without the constraints of a microcontroller.
harder than compiling to native though? especially if it's a much simpler virtual machine than a real microcontroller?
To develop a virtual machine from scratch that runs on microcontroller vs. cross compilation with an existing toolset? Yes, it'd be a lot harder.
hmm you make a good point about the cross compilation, I wouldn't have to do that from scratch
though since the apps don't need to be super performant or anything it's not like the constraints are that difficult either
Keep in mind that with microcontroller there's really no notion of "apps". You can install different firmware, but without an MMU (memory management unit) there's not really any good way to isolate application code.
well, in a custom VM it is
Memory will be your main constraint.
That's called an operating system /hj
also do multiple apps need to be able to run at the same time for it to count as "apps"? I was gonna have almost 0 ability for them to do stuff outside of when they're open and there's only 1 app open at a time
so it's not nearly as hard as a real OS
not even close
orders of magnitude
That's... debatable. Do you consider DOS to qualify as an OS?
but like, is Java an OS?
plus if I do want certain limited background functionality it's almost easier to do interpreted than having to link that to the cross compiled code as that would be a whole hassle
like how would I even start running the cross compiled code at the right spot? I'd need to set up some kind of loading/dynamic linking anyway
so at that point easier to make an interpreter
which isn't really much of a VM except maybe technically
Java is a virtual machine, and generally speaking it runs on top of an OS.
You could use an existing VM. Lua for example has a very lightweight VM and has been used in embedded applications for years.
but java manages stuff related to memory in the programs it runs so it's an OS /hj
but I don't really want a real vm for a real coding language
I want some dumb thing for my own oddly specific creation
the only real reason not to is performance and some parts being tedious to make
but I have no real idea what the performance might look like
...
waaaait
this is one of those "try it and see" moment's isn't it?
I should probably do that instead of wasting your time lol
see if I like the idea of trying to make a bytecode interpreter
by trying it
to make like a tech demo / proof of concept of what I'd actually wanna make
You certainly can! I was just suggesting that you use an existing bytecode interpreter.
might make sense too, depends how the design of my product goes
I'm still doing a lot of figuring out what I want to make
HELLO
I need 1 thing
constant current source for bipolar analog current output
anybody here knows how to achieve this beautiful trait?
... ok this is just embarassing
so I was working on my smartwatch
and I noticed that after a few seconds it stopped logging bluetooth data recieved to the serial monitor so I freaked out and kept looking through my code interacting with bluetooth to find the issue
nope! turns out...
I forgot to disable the code where it goes into a weird sleep mode after not moving for a few seconds
i accidentally ordered 20 meters of LED strips
you can use your ESP32 with that LED strip to build a WLED controller! 😄
yeah i was gunna do that
well that's what the 2 meters was for
i wanted to build a bluetooth speaker with LEDs on them and stuff
i think a 240 hertz duel core processor could handle running a BT speaker and LEDS
if not i'll just use multiple
i commited a cardinal sin
i played a megadeth solo
using a kirk hammet guitar pick

nice 😄 A Wled lamp is one of those things that I really want to do but then I get way too many way too amitious ideas...
bro i've been trying to make something with my micro controllers for like 2 months
then i look at the price for the cool stuff
and im like
nah
but i thought i'd buy 2 meters
because it was £13
turns out
its not 2 meters
its 20 meters
for £13
oh wow
and the LEDs are all controllable with a remote
and an app
so like i can just bootleg my own controller for them
with an ESP32
though, are they individually adressable LEDs?
well they must be
or RGB with only one colour per strip?
else you couldn't change them through a remote
I had an IR remote RGB strip+controller that was only one colour for the entire strip
wouldn't be the first time some amazon/ebay seller would exaggerate their product :/
😄 👍
I kinda can't believe that price 😮
But with 20m even if it's only like 30 leds per meter you could do great stuff!
it doesn't say about the Diodes per meter
well, we'll see 😄
~~just buy another 1m LED strip and use that as a meter stick 😝 ~~
Got a link to em at that price?
LED strip lights bring to you a special feeling on the lights! [Infinite colors to choose from]In each single LED units there are 3 primary LED lights (red, green and blue), which can create a mixture of millions of colors, change to different colors ambiance by your mood. [Extensively-used Occas...
i'd end up ordering 100 meters
Also I have unironically used myself to measure cables

i do that
i know that up to my belly button is 1 meter
so i just use my belly button as a measuring tape

Number of light sources = 90
So assuming any accuracy to the ad, not very dense
But a very good price, might have to grab some
Nah, they claim 90 across the 20 meters
Not 90 per meter
But looking at the pictures I wouldn't lend much credence to that
Looks like roughly 10-20 per meter in people's reviews
Personally, I don't trust these Amazon specs at all 😂. I've seen everything there. From mousepads with 8GB RAM, to toilet paper that requires 16000V and so on
Adafruit too probably
16000V, at that point I think it'd be a laxative rather than a cleaning aid
idk what "AI" they have to fill in those specs but it's so often just complete garbage 😆
Interested to see what comes because tbf even if it's a solid colour along the strip rather than addressable and only has 90 LEDs, it's not a bad price
If it is addressable then that's a bargain and a half
only annoying thing is that ESP control of non-adressible LEDs is harder as you need a transistor. But maybe you can hack the LED controller that comes with them
The controller that comes with them likely includes a useful power supply as well
And the correct transistors
well i mean there is really nothing that stops me from controlling the LEDs individually
they're all addressable to some degree
cause they can all goto any of 16 million colours (allegedly)
That doesn't mean it's addressable
Most of the strips at this price are just 3 power supplies and a ground (or 3 grounds and a single power supply, depends on if it's common cathode or anode)
oh yeah im thinking of something else
All the reds share one channel, greens another, blues another
yeah i'll just have to look into them once they arrive
I should get up and do productive things
But that requires getting up and doing productive things
It should be possible to determine whether they're addressable by looking at the strip. Addressable ones will normally just be the LED packages themselves, with 3 traces (power, ground, and data) between them. Non-addressable ones normally have both LEDs and current limiting resistors, and 4 traces (power, red, green, and blue). There are some other possibilities, but those are the common ones, especially for less-expensive strips.
there are 4 
wait lemme show you
you'll know better than me
Those look non-addressable.

They might be RGBW though.
Yeah
came with this
and if i ground the pins on the LED i can change the colour
so i'd presume so
Yeah definitely non addressable
drat
they have bluetooth connectivity already so i dont think there is much point in me programming anything to them i'll probably just put them up somewhere
Yeah, one of the traces is marked Vcc, so grounding a lead will turn on that color.
I'm remixing this project
https://github.com/rpigu-i/rfidsnatcher
Instead of an $85 board with a sim card for sms I'm using a feather with a wifi ap and captive portal to "transmit" the key from device to phone in a way where it can be copied and shared easily, total cost under $30
or you could write a BT / BLE app
so it connects over bluetooth
and displays on your phone
I did that too but i couldn't copy the text
save it to a text file
and then upload it as a file
instead of plain text
I will try some more I'm not all that well versed in ble. The captive portal seems to work well and it's password protected. I want it to not require anything other than a stock phone to use
fair
They are gonna give me access to the GitHub and I'm gonna make a new branch the annoying thing is I ordered the RFID reader "one day" from Amazon 2 days ago and it's saying delivery Thursday 🙄 I wrote all my functions and tested them, I combined my functions with the code so now it's just a waiting game.
lmfao felt
would one of these work
That's what I'm waiting on but I got a 3 pack for $10
Yea
nice
can you write RFID chips with those
I think it's just a reader
I was hoping to have it yesterday and be done today but I was deceived by Amazon
dw i shown videos of my product doing multiple colours at once
they only do one
i just had to order new breadboards because the ESP32s are like really wide
GUYS I AM IN THE STREAM ROOM IF YOU WANT TO WATCH BRAIN STIMULATOR BUILT
Ok, that's taking things too far @sharp nexus. Multiple people, including moderators, have already made it abundantly clear that your brain stimulator project violates the code of conduct here.
hello, so this project am working on needs to display some infos on an adafruit tft screen. According to the guidelines, my code supposed to be working but it ain't, so ...HELP ME
https://learn.adafruit.com/adafruit-2-8-tft-touch-shield-v2/adafruit-gfx-library
what exactly doesn't work? Do you get some error message? What do you expect/want to happen? Vs what actually happens?
like the screen is just white
meanwhile i can see all the debugging in serial monitor
and have also tested the screen before, it's working
how can i use my ESP32-C3 as a USB HID device
sadly, you can't, the ESP32-C3 doesn't have a full USB implementation, only a usb serial one. It's kind of a USB-serial converter on-chip
bruh
BRUH
omg
i literally had this problem
yesterday
someone here told me the C3
will have it

i brought 3 esp32s
they were bundled and i thought they'd have it
plain ESP32 also will not
then they didn't
then i asked and i was told the C3
would have it
im losing my mind
i've spent £40
on chips i cant use for what i wanted to
😭
was it in this channel that C3 was vetted as regular USB?
iirc
lemme check
yes
right here

i knew i wasn't going crazy
I'm sure DJDevon3 is sorry he said that -- he is short on sleep at the moment
can you tell me
which ESP32 board
i can get
that has wifi
and USB HID
please
ESP32-S2 and ESP32-S3. Are you going to use it for CIrcuitPython or Arduino or something else?
C++
Arduino probably
wait but the Arduino IDE
shows this
which doesn't happen with the regular ESP32
S3 can be flaky with some I2C devices that do clock stretching or sleeping. S2 works well, does not have BLE capability.
S3 does have BLE
who knew the USB protocol would be such a hard thing to get right 
yes, ESP32-C3 has USB CDC, but no other USB
C3 with Bluetooth can do Bluetooth HID I believe
yeah i know but i dont have bluetooth on my PC
If you think USB is hard, wait 'til you start playing with Bluetooth!
i have
Lol
i've done USB aswell
but i wanted to try it on an ESP32
i've brought 4 ESP32 boards
and none of them have it

Bluetooth dongles aren’t expensive if you have a free usb port
i added a USB card cause i needed some more USB at one point
you can use all those ESP32y things for Wippersnapper: no-code IoT data collection
when i had an array of picos
3 on the front, 5 on the back
plugged in at once
i have 2 on the front and 10 at the back
i cant even do wifi AP stuff cause my PC doesn't have wifi
only ethernet
omg
i swear
on your next useless Amazon order, you can get some dongles
im going insane
some people think all they need is USB CDC, so they can do serial, and that's enuf for them
you mean like the keyboard/mouse protocol? it's serial, but not the usual async serial, as i recall
interesting
also
yes
It's async serial, but not usual async serial
i thought PS/2 had a clock line?
maybe i could mess around with it and make it emulate a PS/2 keyboard
Idea: RP2040 PIO PS/2 emulation
You may be right, it may be synchronous serial. I remembered it was open collector or something (I remember placing 7407 chips or something like that back in the day)
https://github.com/No0ne/ps2pico of course it's already done 😆
nope just ignorance, i thought the c3 had it too. also probably not a good idea to use shorthand like that. when i say s2 or s3 i always specifically mean the Adafruit ESP32-S2 (QT Py or Feather) or Adafruit ESP32-S3 (QT Py or Feather).
there are so many boards out there named s2, s3, and pico now that you really do have to be very specific.
but you're not wrong about the sleep too, i'm always short on sleep lately. life throws curve balls sometimes.
np! take care
welcome to the world of prototyping
ive spent well over $250 on my project
lmfao i got the wrong board 4 times 
it would have been cheaper if i'd have created my own board had it made in a mf factory 
what are you trying to make if you dont minfd mr asking
im trying to write some software to mimic some of hak5's tools
because no chance if im buying any of them
they're very expensive
make sure you use your powers for good
im using them for me

i dont do anything with them
i just make them to prove that i can make them
One time, I wrote a program to create a custom footprint for a module. I printed the board out 1:1 and verified all the pads lined up and fit. However, 3 sides were numbered correctly, but one side was numbered backwards. $2000 worth of assembled boards were wrong. Oooooops.
AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
i'd cry
i'd literally cry
wait, can someone give me a spec sheet for the ESP32's wifi module
or can you tell me if it has monitoring mode
Time for bodge wires!
There was an additional problem where I had specified a "reverse" USB connector, but the assembly house didn't have them in stock, so they soldered on the standard ones, which switched all the pins around. More bodge wires.
i once ordered a pcb and messed up the dimensions on the gerber files. it was supposed to be 6 in by 8 in. I put it as cm.
i ordered 50.
😭
luckily I explained what happened and they changed it for free and didnt charge me for the 50 boards i messed up
there needs to be a word for the anxiety that happens when you order a PCB and hope that you got everything right on the cad
Or just plain OCD.
or that
(read in US medical ad voice) Working with any form of computers may have side effects, which may include: Notions of paranoia, obsessive compulsions, sudden belief in the occult, and/or visions
i am losing my mind
i have just spent the last
30 minutes trying to make my Pico show as a mass storage device using the arduino SDK
when it turns out
i can add a build flag in platformio
that will do it for me
😭
....does the pico have usb host o_o
which one? 😮
I honestly did not know
build_flags =
-DARDUINO_USB_MSC_ON_BOOT=1
apparently that works
yes
host and client. USB 1.1 "officially" (on the micro-USB connector on the pico boards) and 2.0 on GPIO using cursed PIO code
the pico is a nice board tbf
Woah. 👻
I think that uses native 1.1 USB for the Type-c and the PIO for the A
But if you want to do something, check before buying if Adafruit TinyUSB or the native SDK tinyusb supports it 😄
knowing me, I'd probably get some Chinese board and make figuring it out a project of its own
I find that more rewarding than actually building something with them lol
if you figure anything out, plz make a pull request to arduino-pico (if applicable) 😄
(great core, I always need to advertise it)
I'm thinking of getting a new fpga devboard
I'm kind of the opposite here. I see development boards as tools, and I want my tools to function the way they are supposed to.
i dont know if i understand this very much but can someone explain why there is 127 mb of free storage here
but there is only 2 mb of flash
I said that in the context of a hobby project, in a "buying IKEA furniture and putting them together" sense. I obviously only get well-documented and known-working boards for things that are actually important.
In general, or one in particular (like skerr's)?
Probably has to do with the way it enumerates itself as a filesystem to the OS. It's not like you are copying a file there directly.
I'm thinking of getting a board supported by the open-source toolchain (yosys->nextpnr) to play around with and see what it can do
It’s going to be a bit before I can sell in the EU. I have to do testing for DoC for CE and UKCA
I know who to ask for recommendations.
I'd appreciate any recommendations tbh
I can self certify but I still need to document those things
Because RP2040 is using internal mask rom for usb bootloader, so given that it is fixed on the chip, the way to support different size of flash is to just simulate a large enough disk for them.
there is a lot of lag with the rp2040 when using it as a HID
ive found around 500ms depending on the application
Most Chinese vendors with proper CE certification I've seen use an external certification bureau. I dunno why, but they do it. Obviously, more resources etc
But perhaps there's something inherent in the process of self-cert that opens you up to too much legal risk/liability?
No more than using a certification house
It still falls on the manufacturer to product documentation proving conformity
I dunno, it might be best to save up and go for a proper cert house when you already have income stream from said boards to make sure you conform to all.... the paperwork
RoHS is easy because you can just show all your parts are certified RoHS. Low Voltage and EMI is more difficult
But still doable
Yeah, RoHS isn't too bad. Probably. IANAL. OTOH, I remember watching a Chinese factory tour where they had an actual spectrometer to check if their components were contaminated with non-RoHS-compliant ones, which was something
Glad to hear you aren't anal.
BAHAHA I GOT BANNED FROM A SERVER
😭
#include "PluggableUSBHID.h"
#include "USBKeyboard.h"
USBKeyboard Keyboard;
void setup() {
}
void loop() {
delay(1000);
Keyboard.printf("Hello world\n\r");
}```
lol
oh. I can see how that would happen
just tell them you have a literate cat
7ban @sick apex
i forgot to hit the bootsel button
😭
NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
lmfao
It is a fake drive. It size does not represent what an actually be stored in flash.
ty
sir/ ma'am, i just had mine writing almost 200 words per second
delay != data rate
lmao
and crashed discord
i had mine sending and recieving information from a video game that was writen in 3 different languages
so it lagged
fair
I managed to completely overload the serial monitor VS code extension with Serial.println() 😆
same
idk if you guys use it
yeah
its great
i love vs code anyways
and being able to write C++ in it
there are some things I don't like
for my controllers is great
i dont like the library manager
it doesn't work half the time
This is not hard to do.
I feel like it just randomly crashes and does weird stuff
its useful but it gets annoying
mine doesn't
unless you try and write 200 words per second

is there a way to detect what operating system you're plugged into?
with arduino hid code
weird things:
- Other serial monitor programs (including the one in Platformio) work correctly and don't get overwhelmed
- The microsoft dev I reported the issue to, can't reproduce it
I feel like the Serial Monitor VSCode extension has particularly bad performance
No, and I believe this is part of the design.
just integrate a keylogger and look for the following key sequence:
"I use arch btw"
lmfao
I'm speaking in general. 115200 baud is capable of writing 14400 characters per second.

I do use Arch.
I use the arch wiki
void loop(){
Serial.println(LineWith80Characters);
}
Platformio Serial Monitor could handle that. VS-Code built up so much delay that I could unplug the pico and 5 minutes later it would still display "new" lines 😆
USB devices can say what they are capable of, but ultimately decisions like that are made by the OS.
Do you mind if I ask why? I set up arch from "scratch" in a VM 7-something years ago, but haven't touched it since or beyond that, so I'm genuinely curious
orangecrab and icebreaker from 1bitsquared are both good choices.
alright because if i dont want any funky business happening where it misstypes because its not being polled correctly
then i need to figure it out
time to read 650 pages of the USB standard

thanks!
It lets me configure the system the way I want and doesn't come with a bunch of crap preinstalled. Also it is run by a community rather than a corporation, plus the package repositories are large and up to date.
Makes sense. It's still rolling-release, right?
Yeah, always has been.
How do they manage not to have updates break the systems?
Testing
thanks! I might give arch another try once I have the time
i ordered 3 bread boards because my current one is too small
im right in thinking i can just stick them together and it'll be fine right
like i can use one bread board for one side of my micro controller
and another for the other side
True story: I once spent 6 hours debugging why one port on an MCP23017 was not lighting up LEDs, even though the voltages were correct when I probed them. The culprit? The pins on that side of the IC managed to curl under the IC bar in the middle of the breadboard without making contact.
😭
poor you
i feel your pain
im gunna stick all 4 of my esp boards together to make an 8 core processor
see if i can do anything cool
They will act as 4 independent dual-core processors rather than a single 8-core processor since they won't share any memory.
i know im thinking of something like how kubernetes works
i'll have my pico as a master node that gives each of the esps
a job to do
then it will return the data back to the pico
i dont know if that would work too well
but like if you know what i mean
so like i could have an LCD display linked up to one of them
which processes the graphics
it wouldn't be memory efficient at all but it could work
Yeah, I see what you're saying. Your bottleneck will likely be bandwidth unless they also communicate with each other over Ethernet.
well realistically they could all join on a wifi network
one hosts a wifi network
they're all wifi capable boards
Or just connect them all to a single router.
i have a spare router somewhere
you could use ESP-NOW
i know buit i like making my own things
i wont use it
i just like making things
yk what i mean right
Personally I would really like to see a low cost ESP-like board that supports PoE. WiFi just isn't reliable enough a lot of the time, and it would also solve the problem of power distribution.
do the esp32s support ethernet
i remember somebody once made a "cluster" using atmegas
Not sure.
i suppose they probably bypass the system memory and use an onboard chip
i could buy a memory chip and write some code that makes it use that instead but thats a whole other thing
writing a hal for an external ram chip seems like too much work
found it
that's amazing
i love it

The P4 has Ethernet peripheral I believe
Yup
So that’s an option since it will support ESP-NOW
My guess is this chip will got for $5 a single
There is also this from Omilex https://www.digikey.com/en/products/detail/ESP32-POE-EA/10258721
ignore the setup, it'll be better with my other bread boards tomorrow
for now we do with what we have
now i need to count my GPIO pins and divvy them up accordingly
That's cheap if it actually functions properly.
im an idiot

i didn't know the LED had its own pin
well i've linked the reset buttons up to eachother
I certainly hope it doesn’t get plagued with some of the issues that the S3 has had
Having never used an esp232, I'm surprised at how much effort they seem to be putting in developing a brand identity through the design of their datasheets, diagrams, etc
I’m honestly surprised that they used Tensilica IP outside of FPGA
I mean, doesn't cadence own tensilica?
It was made to be a soft core for FPGA applications and Espressif used it for physical silicon
I'd be surprised if they don't have a hard variant
As far as I can google, there has been no broad product usage of Tensilica outside of Espressif
I wonder who uses WDC's IP cores....
It’s been used in a few ASICs for defense but not broadly available (Tensilica)
A lot of the devices using it probably don't advertise the fact that they are using it.
From my understanding it was primarily developed for defense applications
From Wikipedia
It seems it’s mostly licensed for DSP cores
The HoloLens usage actually is intriguing to me
Imagine ESP got cut off from Cadence because of security reasons.
Hmm probably did.
Cadence HiFi series DSP usage is pretty broad, even Intel uses them for audio codec DSP
Tensilica CPU cores are mostly used within the SoC to control some parts of the SoC IP block
So you probably won't see that on the spec or even able to run code on them
Now I'm wondering what happened to realtek's audio DSPs
there was a time when almost every second PC had the crab logo icon on their taskbar
They’re still widely used, but I believe it’s moved more to the mobile audio space
Realtek Semiconductor licensed the Cadence Tensilica HiFi Audio/Voice DSP IP core for use with the TrulyHandsFree technology from Sensory
lots to do still, but it's a start.
this is a "let's push the limits of JLC 6L service" design 😛
also, push the limits of my own capabilities design.
I still need to length match and stuff and run power, design the power supplies and stuff
is this a new lattice devboard?
And so, the circle of life is complete :P
So, a tiny ARM board
Yeah, mostly just wanting to make something that posts and can output over HDMI or MIPI
Some usable gpio
Where will you find the DDR3 memory IC?