|
Yeah, just Google spring shock sensor, they'll come right up. I have a little plastic ball, think marble sized, with one of those and some flashy LEDs. It's lasted literally ten years, somehow gets moved with me, keeps turning up in drawers and surprises me when it gets bumped and starts flashing for a minute
|
# ¿ Jun 15, 2019 22:54 |
|
|
# ¿ May 14, 2024 05:11 |
|
Not as cool and harder to use though
|
# ¿ Jun 16, 2019 00:23 |
|
taqueso posted:They mention using a USB-serial converter so that makes it 99.99% chance its RS232. RS232 is specifically -15V / +15V, and it's really doubtful that that's it. A USB-Serial converter, and this BMS, probably, will be UART (which is pretty standard serial), but that still doesn't answer the question of whether it's 5V or 3.3V. Most modern stuff has moved over to 3.3V, and I'd recommend picking up some sort of 3.3V-compatible Arduino-alike. The Teensy is supposed to be good, I guess.
|
# ¿ Aug 6, 2019 01:05 |
|
I dunno if you have a multimeter or scope, or even an Arduino Uno with an analog pin available, but definitely double check that your BMS is using 5V serial. If it is, yeah, gopher it, use an Arduino Mega or something 5V with multiple UARTs. You seem to be barking up the right tree. If it's 3.3v, I guess that's still the best route if you need the 5V output, but you'll need a level shifter to get from 5V to 3.3V logic so you don't blow up your BMS's RX pin. Lots of those available on AliExpress for a few pennies. It's just a couple transistors.
|
# ¿ Aug 6, 2019 03:34 |
|
Uhh paid software? PlatformIO is free / OS, built into VS Code, owns bones, and can "import" Arduino projects and there is literally no reason to even download the Arduino IDE anymore, seriously. Drop that hot garbage. PIO even just opened up their previously paid debugger. Also it comes preloaded with a million different Arduino clones configs so it can sort through their peculiarities, and automagically does the toolchain stuff for Arduino / Espressif stuff / STM stuff and some others.
|
# ¿ Aug 12, 2019 02:58 |
|
Tbh my advocacy of PIO goes way beyond personal preference, and there have been several breaking changes in libraries that would have sunk my projects, had I been using the Arduino IDE. PIO allows you to fix your libraries and frameworks to specific versions if you like, and use a config file that tells anyone that has your project how to install it automatically, without the version/incompatibility hell that is the Arduino ecosystem. There are many other reasons to use it over the official stuff, it's just that that one seems relevant to your issue. It's worth the minimal learning curve to figure out how the config file works, to help with future robustness and ease of sharing, and all sorts of customisation
|
# ¿ Aug 12, 2019 22:03 |
|
I don't understand what's making the beep, the Uno does not have any noise making capability
|
# ¿ Aug 19, 2019 01:18 |
|
Yeah, I probably wouldn't run an Arduino directly from a car's 12V line and expect it to survive long, that's real dirty power
|
# ¿ Aug 19, 2019 01:43 |
|
I would classify anything over 10uF as big-ish Too many unknowns to figure out the exact "right" value, but guess-and-check is an accepted method for this kind of thing. Any value will shift the frequency, just gotta do it enough so it no longer bothers you
|
# ¿ Aug 19, 2019 02:59 |
|
Assuming that it's a clean voltage that is within the range the board claims to be able to handle, it's fine.
|
# ¿ Aug 19, 2019 03:55 |
|
Avvy beacons don't actually use RF either, they use magnetostriction, and it's awesome
|
# ¿ Aug 28, 2019 19:44 |
|
Web IDEs own when I'm jumping between three or four different computers. Although I prefer VSCode with an FTP file system to my server
|
# ¿ Sep 21, 2019 03:02 |
|
How are you triggering programming mode?
|
# ¿ Oct 17, 2019 00:47 |
|
babyeatingpsychopath posted:Baud rate on the ESP8266s is 76800 for some reason, so I bet the ESP32 has some arbitrary baudrate that's in the datasheet somewhere. 115200, but what I'm getting at is that I bet he's not properly resetting it to programming mode
|
# ¿ Oct 17, 2019 02:22 |
|
Do you have anything else plugged into the GPIO of the board? There are four or five pins that can't be pulled high or low on startup, they'll change internal flash settings and stuff. Uuuusually when you have the correct baudrate set, you can listen in with your UART dongle and see boot up messages. Random ascii kinda says wrong baudrate or wrong comm settings in some way to me
|
# ¿ Oct 17, 2019 08:57 |
|
babyeatingpsychopath posted:No. The barrel jack goes through a regulator then dumps onto the VIN pin. Not directly. If you take a look at the official schematic, the barrel jack goes through a P channel MOSFET that cuts off the USB power
|
# ¿ Oct 30, 2019 03:42 |
|
I'm so confused by that diagram
|
# ¿ Oct 30, 2019 18:13 |
|
Gonna repeat that the official Uno does exactly that, with a MOSFET
|
# ¿ Oct 31, 2019 00:45 |
|
Your input pin is floating, so it's basically showing whatever electrical charge is on the pin Use pull ups, either physical or in software Edit: oh wait you did that
|
# ¿ Dec 27, 2019 09:13 |
|
Cojawfee posted:Do any of the other pins do that? He figured it out, I think, from the edit. I've never used the Teensy or anything for keyboard emulation, but I guess Keyboard.send_now() sends a keydown event, and requires another command to release the key after you're done
|
# ¿ Dec 27, 2019 09:24 |
|
No it can't Why do people always neglect shipping on JLCPCB in particular. It's their marketing thing and it really seems to be working. And they've really hosed me on shipping. Check out pcbshopper.com for price comparisons. The majority of them are in the realm of $14 for 5x5cm, qty 10. I like PCBWay, or Seeed, but it's mostly all the same ante fucked around with this message at 19:55 on Jan 2, 2020 |
# ¿ Jan 2, 2020 19:34 |
|
Huh? No I'm saying they literally lie about the price. They're the same price as everyone else, including shipping, because everyone else does "free shipping". Which is obviously also technically incorrect, but a whole lot less dishonest They also pull some shipping shenanigans that have triggered duties or required me to self clear, and I'm not sure what they're doing differently to make that happen. It's only them, though ante fucked around with this message at 19:57 on Jan 2, 2020 |
# ¿ Jan 2, 2020 19:54 |
|
lol there's no part of the USB stack that won't make you want to die
|
# ¿ Jan 17, 2020 20:37 |
|
LCDs universally fuckin' blow to drive, from the driver side, and then from the interface side Hth
|
# ¿ Feb 15, 2020 05:29 |
|
Are you using PlatformIO? It makes it pretty easy to use Arduino stuff with the Blue Pill I think I tried to use the Arduino IDE with the Blue Pill before PIO was a thing, and it was a whole lot of frustrating loving around. Not a lot of reason to use the official IDE tbh
|
# ¿ Feb 18, 2020 08:14 |
|
Yeah, that sounds about right. Just a lot of loving around. Tbh I liked the power-to-dollar ratio, but the time it took to do anything was ridiculous. I ended up doing everything with ESP32 dev boards instead. They're more powerful, maybe $2 more expensive, and have integrated programmers. Alternatively, I picked up some $20 ST dev boards with the STLink on board, and they're nice to work with, too. I can't think of a case where I'd actually want to go back to the Blue Pill, as much as I like the idea. General_Failure posted:Mostly arduino-cli. Not for some neckbeard hipster reason though Lol
|
# ¿ Feb 18, 2020 21:44 |
|
You really don't want to ease into it slowly, huh?
|
# ¿ Feb 20, 2020 22:12 |
|
Sucks donkey balls. I did it professionally for way too long. Look up "ladder logic", that's how PLCs are programmed. It's kind of a parallel visual programming language, and is designed to be picked up by automation engineers with little programming experience. It gets very unwieldy, very very fast, though, and all the tools suck.
|
# ¿ Mar 10, 2020 03:22 |
|
Don't be afraid of SMD, either. Larger pitched packages are actually easier to solder than DIP.
|
# ¿ Mar 26, 2020 21:36 |
|
Yeah, don't bother etching. It's more worth your time to send off for professional PCBs, when the time is right for you. In the meantime, I'd stock up on a bunch of breakout boards of all different sizes of I were you. A lot of ICs, particularly modern microcontrollers only come in SMD packages.
|
# ¿ Mar 26, 2020 22:29 |
|
They're not gougy, you're going to have to adjust your expectations!
|
# ¿ Mar 26, 2020 23:03 |
|
CMOS is usually 0.7 * VCC, which works out (unfortunately) to 3.5V for 5V systems. It'll be in the datasheet
|
# ¿ Apr 6, 2020 21:43 |
|
I thought that was a soldering iron at first and was horrified
|
# ¿ May 1, 2020 17:42 |
|
Connectors are (usually) rated very conservatively https://hackaday.io/project/3339/log/50102-tedious-testing-suggests-the-connector-selection-is-sound
|
# ¿ May 11, 2020 15:54 |
|
FetusPorn posted:I've got a question I'm sure one of you fine folk should be able to answer. code:
|
# ¿ Jun 3, 2020 00:07 |
|
FetusPorn posted:Yeah, that seems to almost completely kill it... it must be a slow function. Thank you though! You're probably hitting interrupt encodedB(), and then it delays, and gets interrupted by encodedA() Usuuuually you'd never ever want to put a delay in your interrupt for that reason, but considering your code is doing nothing else, you should be able to get away with just disabling the interrupt while it's running (also good practice generally) code:
|
# ¿ Jun 3, 2020 00:22 |
|
Doing low power / current sipping is also really tough. But don't let that dissuade you, that's a case of "getting it going once, then see if it's good enough. Then, incrementally optimise the code until it works." There are lots of kinda on settings / strategies you can use to help.
|
# ¿ Jun 5, 2020 18:02 |
|
He's trying to get remote sensing so they can check while they're not at the property
|
# ¿ Jun 5, 2020 23:39 |
|
Teensy?
|
# ¿ Sep 28, 2020 19:06 |
|
|
# ¿ May 14, 2024 05:11 |
|
The price is right, but only if you want A Project and don't value your time. I've used them a lot, and they're great, but I've definitely put the work in
|
# ¿ Sep 29, 2020 02:05 |