What did you build today (Pictures) ?
-
Building some loggers which i might sell later on.
-
And want to make a tip about smd component organisation...
-
@neverdie I thought about adding jumpers, but being that these are in-wall switches which are pretty much permanent, and the fact that because of space the OLED display needs to be soldered in place, there's not much chance of the display getting changed from I2C to SPI or vice versa. I figured that the pads could just be bridged one way or the other depending on configuration.
-
@sundberg84 said in What did you build today (Pictures) ?:
And want to make a tip about smd component organisation...
I think we should make another topic for this kind of tips ? We could discuss pros and cons and give reference to online shops to buy items, your boxes are quite nice for DIP components and small breakout boards, where are they from ?
For SMDs components I went for the lab supplies on AliExpress, I started to sort my SMD chips using 5ml tubes and 3D printed holders, I need to print more holders to sort by categories as it's a bit messy at the moment. I put a bigger sticker on the side of tubes with more details as top sticker is pretty small Same holders can also holder bigger tubes for bigger stuff like here mini/micro USB plugs.
For resistors, capacitors, inductances, ... I went for lab tube boxes. I use smaller tubes (1.5 or 2ml) but they can hold probably thousands of 0603 or 0402 and even hundreds of the 0805 and 1206 resistors. I use different colors to differentiate size (and later precision/voltage/... when I'll have more boxes) and put bigger stickers on the lid of the box with information for each color.
-
Here, I like using smd books but of course I have a lot of these little boxes, too much though, and not enough!
Little boxes are nice but not very handy as you spend your time to reorganize them. Whereas I can have dedicated pages in books for my designs. Sure I could have dedicated boxes, but that takes more place and I don't have to search for a partvalue in hundreds of box.
-
@nca78 What do you do with the parts that are too big to fit in your test tubes?
-
@neverdie I have plastic boxes from my local supermarket, I put components/breakout boards etc inside in their antistatic bags, then align them on their side in drawers. Less convenient to access but at least it's cleaned and ordered
-
I got this set but I haven't used them yet, I still have room in my plastic storage drawers
https://www.banggood.com/10Pcs-15-Value-Electronic-Components-Storage-Assortment-Box-p-951597.html
-
Great fun to see all these build pictures!
My pic of the day is a trivial battery powered DHT22 sensor just to try things out with prototyping, programming and connecting to OpenHAB. This is my first project since highschool. (The gw and first sensor is on a breadboard.)
It feels great to be soldering again after almost 30 years and I'm really looking forward to step into the MySensors world!
-
@fredswed being a battery operated node, you may want to remove the LED from your pro-mini to save power. You may also want to look at the options for ruining without the pro-mini regulator also to save even more power.
-
and also get rid of the dht sensor to get a proper one
-
You are of course both right! It was only intended to get things going so I didn’t want to complicate things. My “production” sensors will be quite different. Maybe I’ll save this one in a frame on the wall
-
Today I finished the coding for my prototype of a laser distance sensor (intended to measure the water level for my automatic in-door flower watering pump). The sensor is connected via I²C and has sleep pin.
The most work was implementing support for the VL52L0X laser distance sensor and for my 128x64 OLED display to NodeManager (PRs submitted as https://github.com/mysensors/NodeManager/pull/244 and https://github.com/mysensors/NodeManager/pull/245).
The OLED is really useful when prototyping sensor nodes. Out of the box, my NodeManager OLED implemention will display the values of all attached sensors without any coding. Simply create the DisplaySSD1306 after all other sensors, and the OLED will pick up and display all sensors automatically...
Once everything works, of course the OLED is not desired for the water level sensor running on batteries...
-
@reinhold that's an awesome idea ! Ordering new OLED displays right now
And this sensor is great, its precision is putting to shame the APDS and similar sensors.
-
@reinhold what library did you use for the oled? I used one that takes almost all memory available on my pro mini
-
@gohan I'm using the SSD1306Ascii library, which does not use a display buffer and does not support graphics, only text. The drawback is that to prevent screen flickering, you have to manually clean each line of text to the EOL. Otherwise letters that are not overwritten by new text will not be cleared. See my PR for NodeManager how it works. With my approach, there is absolutely no screen flicker, the display updates properly and the memory requirements are minimal (the library docs say its 53 bytes)
-
I now have revision 1.0 of my OLED keypad posted on OpenHardware.io. My first revision of the board allows for either the 6 pin SPI or 4 pin I2C versions of the SSD1306 OLED display. The 9 button configuration allows for several different combinations of buttons depending on the needs of the user.
https://www.openhardware.io/view/546
-
I found out that the brinks solution I build some time ago could be upgraded with a nice additional feature. 'Filter detection'.
I created a cheat sheet as my device was equiped with RJ11 connector and 3 wires. I needed to convert it to RJ12 with filter detection.
A nice black conversion box Output wires are the same colour as the original RJ 1 wire. With 2 extra wires 3,3v or 5v for the digital 'one' on the arduino.
-
@andrew said in What did you build today (Pictures) ?:
so, it is ready. I mean ready to SW development both the schematic and pcb design is now confirmed and fortunately theory meets the practice
it is assembled, programmed, tested, everything works as expected.
I did not mount it to the wall so far (I'll need a controller and real actuators first), but there was no issue with the communication between two nrf modules (both with PCB antenna) from cca 6 meter distance + 2 walls (10 cm brick) in between.the touch panel's firmware will be enhanced as well as the controller's firmware, at the moment the touch sensing is reliable and a PoC code run on both of them for testing/debugging purposes. for the controller board I'm collecting additional information for the development on the following link:
https://forum.mysensors.org/topic/8831/which-sensor-and-msg-type-for-switch-dimmer-node-sender-only
-
@andrew Nice work man!
Where did you source the gray enclosure from?
-
@yveaux said in What did you build today (Pictures) ?:
@andrew Nice work man!
Where did you source the gray enclosure from?thanks! the cover is also part of the original livolo (well, in fact a chinese clone of livolo) touch switch.
-
-
-
@sincze thanks, Sandor
-
Added a buzzer to my nRF51822 coincell device to make a locator beacon. Attach the device to an object you tend to lose and it will make sounds when you activate it, allowing you to find it.
The buzzer is driven by a load switch, so that none of the nRF51822 pins are overloaded:
-
@neverdie I hope that you made the prototyping with the cnc
-
Finally, the last day of my holiday I managed to upload the Mysensors Sketch into the NodeMCU to control my 900 LEDS. It will also read the lux intensity in the livingroom. So if it is dark the lights will switch on.
All is based on @Yveaux Mysensors ESP Gateway port. On a rainy saterday last year @Yveaux and I found out we did not have to modify anything on the voltag level for driving the LEDS.
The sketch includes all the Doll_House animations (around 55) that can be skipped through using an old 433mhz remote (or via interface directly ofcourse) Next stop... Installing 15 meters of LED in the livingroom. pffff
And putting everything inside this little box @Yveaux printed for me.
-
Hi,
today I've almost finished a speaker build (it'll be a gift for family)
First, I would like to thx Paul Carmody who created the original design of these speakers : Overnight Sensation
https://sites.google.com/site/undefinition/diy-overnightsensationsI have just changed size and format (of course I kept the internal air volume which is very important)
-
I designed&printed a simple circle jig for my router.
-
So speaker drivers can be flush on front plate
-
Assembled the box
-
Crossover, port tube, foam
with a special place to fit some electronics like
- rpi (for Volumio/LMS client, or a voice assistant)
- cheap dac & 2x50w amp from aliexpress
- Now vinyling. I need to change these ugly black screws too.
Of course, I'm too excited (and not very patient ), so I've tested how they sound... Loud! Crystal sound with very nice boomboom
Not finished, but in good way
-
-
@scalz I have to guess this is a centre speaker?
Some tidy inductors there on the crossover...
How times have changed, now you can PRINT a router jig, used to make them with a piece of plywood for circles smaller that the router radius... Centre was drilled and fitted with threaded rod so you could cut back the front of the baffle but also chamfer the back face of the speaker baffle before cutting out the opening...
Tidy enough, great when they get fired up....
-
Today I (finally) finished a full working version of that old Livolo 3 buttons switch. I removed the RGB led on the central button as it's not visible, but the basic switch functionality with buttons/relays and blue/red status leds runs fine.
It's running with MYSBootloader, it's really convenient to update without having to switch of the fuse and unmount everything.
A (quick) video, touch sensibility is perfect now, I'm really happy with it !
https://www.youtube.com/watch?v=G6yEdSyoMYw
-
@scalz That looks very neat and tempting indeed! A pair of Overnight Sensation has long been in the plans for my next (and first) speaker build. Where did you get the components?
-
@zboblamont
well actually it's setup as a standalone stereo speaker. I asked my brother (it's a gift for him) if he would prefer separated speakers (better for stereo). But he prefers like this, standalone with no wires, and his room won't be wide so it should be ok.
Yes, i know for the jigs in plywood, but i have a 3d printer, caliper; drawing, print and voilà
I like using cad software for checking assemblies in 3d etc, very handy, and it's more precise than my brain :).@fredswed yeah, it sounds very nice. when you hear it, then you know you made the good choice. Better than buying any of these 60 to >200$ smart speakers. I compared them with some others hifi speakers (jbl..) for fun, and still very impressive. Some of my friends are jealous. They want one, or more. Same for my others bro. They sound pretty loud imho, and would like to try a pair like that for fun
I ordered most of the parts at loudspeakerfreaks or audiohobby. if you live in USA, then it's better to give a try to parts express I think.I finished the vinyling yesterday (my bro didn't want I roundish the corner). I now just need to add a rpi inside and connectors etc on back, not bad
-
@scalz - im using volumio (finished image for RPI) and happy with this. Just a tip...
-
@sundberg84 said in What did you build today (Pictures) ?:
@scalz - im using volumio (finished image for RPI) and happy with this. Just a tip...
same here with a few additional plugins Agreed, volumio is sexy sw.
your speaker looks nice
I read and learnt a lot how to make diy speakers. It was very interesting learning curve, lot of parameters I didn't know before (and one of the most important rule is : tune your enclosure regarding speaker drivers specs, not the oppposite (there are software for calculating everything) Now I understand better the curves etc and where commercial stuff cheats. pretty cool
-
@scalz - this was my first project and I agree with you (because I didnt calculate much before). If you are looking for the best sound its incredible important... for me and this build I wanted a small enclosure in the kitchen but the sound is pretty impressive for such a small thing so Im happy even though I know it could have sounded better.
-
@scalz Whatever, so long as your brother enjoys what he asked for, job done.
Do I interpret your comment on "roundish the corner" as rounding over the front baffle edges? Sonically it can make a difference for imaging, but with drives this close I doubt it would be noticeable anyway, and would be a pain to vinyl let alone veneer....Almost 50 years I've been building speakers as a hobby....
I'll finish them one day
-
Maybe you speaker geniuses can figure out the optimal enclosure for this tiny buzzer? https://www.aliexpress.com/item/2731HZ-3x4-5x1-9mm-Super-small-miniature-AAC-electromagnetic-DET402-G-1-SMD-Passive-buzzer-3/32839766133.html?spm=2114.search0204.3.177.AclxtY&ws_ab_test=searchweb0_0&aff_platform=aaf&cpt=1515527880409&sk=e2Vzr3v&aff_trace_key=7078a47c52334a31ac1f2c6cfa07a508-1515527880409-05187-e2Vzr3v&terminal_id=892660b32ab149c8a0ca840218581bea
I find that if I cup my hand over it, it (somewhat counter-intuitively) gets a lot louder, so I guess the same principles are involved?
It would be neat to have a very tiny buzzer like this available for use in projects, but I guess the enclosure design needs to be considered as well so as to get more volume out of it.
-
@neverdie said in What did you build today (Pictures) ?:
Maybe you speaker geniuses can figure out the optimal enclosure for this tiny buzzer?
I'll play my "I am not a speaker designer, but..." card! Here is some basic info.
Jokes aside, a piece of PVC tubing might work. You need something to make the buzzer move the air more efficiently. I'd put a 1/4 wavelength long PVC piping over the buzzer as
a first try. (Any odd multiple of 1/4 wavelength should provide some resonance.)In a more elaborate design, you could try a simple horn. Aim for a size where both the length of the horn and its circumference at the end is ca 1 wavelength.
-
@neverdie Would this work ?
-
All I know is that there's no point to using a super small buzzer if it requires something big to make it work loud enough.
Maybe this is why the buzzer that I'm currently using instead has such a comparatively large form factor.... i.e. maybe there's just no getting around it.
-
@neverdie That was kind of the point to that horn picture, the driver at the sharp end is tiny relatively, but this was the early days of speakers..
You can't have a small 1kHz transducer on minimum power and expect a lot really...
-
@NeverDie , @zboblamont Best laugh I have ever had at a MySensors post : )
-
Today I'm trying out Thingsboard, which sort of is a controller, but on steroids.
So far, it seems quite capable, but I have a lot of learning to do. My first step was to integrate it with Sigfox, which seems to work.
-
@mfalkvidd that looks like more an IoT device management, doesn't it?
-
@gohan could be. What's the difference?
When I think of it, I guess a controller has little need for multi-tenancy.
Btw, some pretty cool dashboard examples can be viewed at https://github.com/thingsboard/thingsboard/blob/master/README.md
-
@mfalkvidd the difference is that the controller is for your home, the IoT device managment is like for a service provider (look at cayenne mydevices for example) that has different customers and resellers, so it needs to be multi tenant and some other features not needed for home use
-
@gohan that sounds reasonable. I actually found Thingsboard after spending 4-5 whole evenings fighting with Cayenne's stupid and badly documented REST API.
-
Today I soldered a tiny MYSX board to recycle my EasyPCBs in door sensors as compact as possible. I can also use the "vertical" CR2032 holders I had no use for and make some space in my drawers.
It can use a normal or a NO/NC reed switch (for SMD allergies ) or a SMD ultra low power hall sensor and it has a footprint for a reserve capacitor to support the CR2032.
I guess this board will be of interest for @sundberg84PS: sorry for the ugly soldering, my old 936 clone soldering station is in "zombie" mode and it's all I have until the new soldering iron arrives.
-
Not related to MySensors but I also assembled a first version of a battery powered led light, it's small and cheap and I will assemble a bunch to put around my home when there are some power cuts in evening/night. I'm using 3020 leds and they emit a lot of light for their small size, even with low current so I expect to get around 2 hours of battery life with the cheap aliexpress 16340 batteries, and way more than needed with the 18650 cells salvaged from my old laptop battery.
My first board with a li-ion charger and it is working well, now I'm waiting for the battery protection ics (cheap DW01 from AliExpress) to arrive as my batteries are not protected.
-
@nca78 Which 3020's did you get?
-
@neverdie said in What did you build today (Pictures) ?:
@nca78 Which 3020's did you get?
Cheap ones from AliExpress, not disappointed especially for the low price. I'll see in the long run how they behave.
https://www.aliexpress.com/item/100pcs-Light-LED-3020-Warm-White-SMD-Diode/32325994533.html
-
@nca78 I have some similar looking panels that I had salvaged from some old document cameras. I was planning on building some MySensorized walkway lights in my hall Might be something good to make in the event of a power outage.
-
This post is deleted!
-
This post is deleted!
-
Some more testings on my Logger... I want it to work great before moving on so alot of testing is needed. Why not do it on node #1 (note the old rev om EasyPCB).
-
Completely unrelated but a impossible project for me it seems...
Im building a wifi "babywatch" in a USB stick.
It sends sounds to a app/software which is build to run in the background. This to be able to game or watch video with headphones and still know if you have a angry child.So pretty much Mic -> Amp -> ADC -> Esp8266 -> Wifi -> Software/App.
This seems impossible to do with all the interference. Everything works now (Rev1) but im now on Rev 6+ or something and I cant get rid of the noice in the Audio.
Seperate power supply + ground for analog and digital side but It seems like the Esp8266 inserts to much noice.
Well, it was a great idea but hard to accomplish.
-
@sundberg84
I really like that case. Do you have a link where you purchased it?
-
@sundberg84 analog and esp8266 also beat me. Tried to play some music from an ESP8266 but result was barely usable. I switched to dac+amp connected via i2s which works fine.
Maybe you could try with a digital i2s microphone...
-
@yveaux - thanks!!! A new hope I will.
@nagelc - I use this: https://www.mouser.se/productdetail/789-p3a-220805s but note, there are 4 different variants. WIth and without opening for USB connector and other stuff. I can send you the footprint for the PCB if you wants.
-
@sundberg84 Thanks. Looks like that company has several interesting enclosure shapes. Someday I might get a project complete enough that I will want to put it in an enclosure : )
-
The nice thing about owning a 3D printer is that I don't have to buy enclosures any more. I just have to buy rolls of plastic. The sky is the limit when you have a 3D printer. I do like that enclosure though.
-
@dbemowsk said in What did you build today (Pictures) ?:
The nice thing about owning a 3D printer is that I don't have to buy enclosures any more. I just have to buy rolls of plastic. The sky is the limit when you have a 3D printer. I do like that enclosure though.
Can't agree more, made a quick box for the lights with "crystal" PLA. You need a lot of imagination to believe it's crystal, but it's nice for a light enclosure as it acts as diffuser.
-
@nca78 Nice. That would probably look cool in any translucent colored plastic. I have worked with clear, like this, red and green. Haven't used them for lighted enclosures though.
-
Hey @mfalkvidd were you able to get mysensors nodes to send data to thingsboard? If so, I'm interested to know how you did that. Wondering if thingsboard can be configured as a controller for mysensors. Thanks!
-
@mcqueen I have not tried, and I have no plans to try. Sorry.
-
@mfalkvidd no problem, thanks
-
So today I created a simple python script to bridge serial gateway with mqtt bus on my RPI:
https://github.com/mczerski/MySensorsSerial2MQTTThis is because I already use spi for nrf24 module mounted on a custom pcb so there is no room for another spi device.
-
I'm building a wine rack for my wife in a celler room (currently 14 dgr with 4 dgr outside). I mowed my beer cooler temp node (rfm radio) to measure how much the temp changed over the day. I wrote a script in Lua/Domoticz that each time it changes 1dgr it should notify me. Apparently is a stable temp the most important to store wine.
All ideas how I can automate the shit out of this wine-room are appreciated.
-
LCD display with temp/hum (both on the floor and celling) (Red needs apparently cooler than white wine... Or the opposite).
-
I'm thinking about to try a passive cooler. A burried hose/pipe in a loop with a 12v fan/pump and temp. My idea is that if I rotate the 14dgr air in a say 20m pipe under ground it should cool the air some . This needs to be automated to keep the temp stable.
-
light. Some sort of led strips.
-
-
@sundberg84 Yeah, this brings back memories, particularly of quite a few hangovers.
I used 3 and four wide fireclay pipes for bottle storage, they were used for ducts back in the day before plastics took over, cable went optic fibre. I noticed recently here they are back in stock in stores as....yep...wine storage racks.... but wacko pricing relatively...
The beauty of the fireclay was it's slow temperature and humidity change, and this formed the bulk of the thermal mass in the cellar I made below the floor.
I used a 150mm glazed ceramic drainage pipe dug in under the garden as a loop (rope caulked joints - anybody remember them), from memory down about 1.5m, both avoiding frosts and baking sun, don't think the temperature varied over a degree all year round, the ground acting as a massive heatsink which maintained a constant temperature all year round.
Only when the hatch was opened did the temperature jump, a small fan kicked in when the hatch was closed and ran for 30 minutes, a second contact switched on the lights and shut them off, long before LEDs were so prevalent, old reliable (until you were depending on them) incandescent bulbs.
That was it really.
Biggest problem I found was humidity in the early days, probably the fresh construction...
-
My wine rack is at the store.
-
Why not just collect the temperatures over time, in f.ex. influxdb, and then use grafana to analyze data? (Instead of pushing messages to your phone whenever the temperature changes..)
-
@tbowmo well I have Domoticz to collect data. Maybe your alternative is much better but I can't change from Domoticz without redo everything. The push is just to get a heads-up how often or changes but I can go into Domoticz and follow 15 min updates as well on a daily, weekly and monthly graph .
-
@tbowmo as the temperature doesn't change that quickly, the 5 minutes Domoticz interval it is OK. As soon as you see a daily variance within your requirements, you are good
-
Was I right to assume that the push of temperature changes to the phone every degree was simply for the initial testing to see quickly how often it would change?
-
I finally got a BT832 (NRF52832 from Fanstel) to talk to my NRF24 gateway. I got the NFR5s a while ago. Made a quick breakout board (quick to design, but slow delivery). In the mean time, I configured a STM32 "Blue Pill" as a Blackmagic Probe to program it. I had to get the latest Sandeep Mistry NRF5 files from github in order for it to support the blackmagic probe, but . . . it worked : ) So far I have just run the MockMySensors and it shows up on Domoticz.
-
@sundberg84
With a little bit of nodered injected in the stream, you could have domoticz running without ever noticing that influx etc is getting the data as well
-
6.3 days or 152hours just inst good enough - this is what my logger managed to do with 2xAA debugging a temp/hum node sending every 15min. Its below 50% to target (14 days) but this included the leds was on all the time... how much can a 2x leds do ?? Next experiemtn...
-
@sundberg84
@tbowmo
Domoticz can also push the data to influx DB. See Settings>More Options>Data Push
-
So for a few days now I have been working on my idea for a homebrew CNC machine made from mostly salvaged parts. This weekend I made some good progress getting the Y axis drive assembly mostly done. I have not tested anything yet, but I hope to in the next few days. Anyways, here is what I have...
The stepper motor is one salvaged from an old dot matrix printer. The gear on it was press fit on the shaft with no real way to get it off, so I opted to make a geared drive assembly. I realize that this will slow the Y axis down, but it should also give it a bit more precision. Below is the stepper motor.
For mounting it, I designed this adapter plate which carries a steel roller bearing for the screw shaft.
This is an early mounting plate design before I added the upper and lower mounting tabs. This shows the gear with the shaft attached. The gear was made using an OpenSCAD gear library.
Yesterday I designed the bracket that attaches to and drives the Y axis platter/build plate (Sorry, forgot to take a decent pic of that part).
Today I was able to finish the front and rear frame braces and got parts rough fitted together. the 2 rails with the small white linear bearings are some rods that were salvaged from a couple old scanners. These were used as the rail for the scanner head. I have pics of the full assembly as well as the motor assembly mounted on the rear brace.
I can't say how well the design will work, if at all, but it has been a fun journey so far trying.
-
@dbemowsk
Well it looks as if your 3D-printer works fineWhat I would be slightly worried about is if with the given size of the rods the stiffness of the structure would be enough.
Hope to see more from this project in the near future.
Good luck!
-
@boozz I will be curious to see if I can get enough precision to do PCBs. I have yet to buy a GRBL board to control it. For now I am going to use the UNO that I have for testing just to do test runs of the servos until I get one. This is the one I have been looking at:
https://www.ebay.com/itm/Arduino-CNC-Shield-Kit-UNO-Board-4x-DRV8825-Drivers-Package-Deal-FREE-USA-SHIP/292174947187?hash=item4406fbe373:g:A0sAAOSwJThZpeKr
I will also have to figure out the gear ratios of the motor assemblies once I am done because I am sure I will need them to calibrate the GRBL setup. I know on this part of it I have about a 4.8:1 ratio from the motor to the large gear, but I'll have to figure out steps per cm or steps per mm or something. If anyone knows a good way of figuring this out I am all ears.Thanks for the upvotes.
-
@dbemowsk It will save you the hassle of upgrading if you buy a control board with GRBL1.1f already built in.
-
@dbemowsk said in What did you build today (Pictures) ?:
If anyone knows a good way of figuring this out I am all ears.
It would expect making a large movement using a defined number of steps, and measuring the actual distance moved with a caliper will give you a rather accurate steps/mm.
However, I hope this ratio is constant over the whole range, given the 3d printed gears and expected backlash...
-
@yveaux as far as the backlash, i had already thought of that. I have 2 coupler nuts with a spring in between to handle the little bit of backlash that there is. I only had a thin spring though. I want to find a stronger one.
-
@sundberg84
Redundancy, maybe you should get a second temp/humidity measurement device, just in case your current beer cooler temp node breaks down...
-
@bjacobse or get redundant beer coolers Important to always have cool beer.
-
@mfalkvidd
True but usually wines have a higher price and a more valuable - not starting a discussing/flame war what is best to drink...
-
@mfalkvidd Can't have too much redundancy there...
-
Made this 12 button keypad. Requires only one analog pin to read which button is pressed, and any button press can also wake an arduino from sleep:
Consumes no power when no button is pressed.
-
Here's a thread which covers it in more detail: https://forum.mysensors.org/topic/8936/6-8-buttons-battery-remote-node/36
-
@neverdie what happens when you press two or more buttons ??
-
@rozpruwacz Well, with the sketch I wrote (see link), you'd get the value of the first button pressed, and that's it. You'd have to release all the buttons before selecting a new button.
In terms of the hardware itself, there's an order of precedence to the buttons, so at all times you'd only be able to read the value of a single button, even if more than one button were pressed. In a multi-button press scenario, the buttons of lower precedence are ignored.
It's a good question though. If you needed to read more than one button simultaneously (such as, for example, move an RC car forward and turn right at the same time), this wouldn't do it. Seems like such a circuit would be possible though, maybe even one based on simple voltage dividing like this one. Somehow you'd need to sum unique resistances for each button pushed instead of just choose a single resistance. I can imagine doing that for a few buttons on an arduino, but maybe not as many as 12.
-
@neverdie I'm asking because I Was trying to do something like this. If there was a resistor values set that would make all 2**n (where n is the number of buttons) choices spaced enough in voltage domain it would work, but I couldn't find such a set ...
-
@rozpruwacz said in What did you build today (Pictures) ?:
@neverdie I'm asking because I Was trying to do something like this. If there was a resistor values set that would make all 2**n (where n is the number of buttons) choices spaced enough in voltage domain it would work, but I couldn't find such a set ...
That's why it might work if you needed it for only a few buttons. With only 1024 units of voltage, seems like you'd quickly run out of resolution if you tried to do more.
-
I built my first MysX daughter board which I will connect to my EasyPCB to drive a led strip.
This will power everything from 12v so 2 things. Power main board and dim LED strip.
-
Do anyone knows it the back of a TO-220 always is connected to GND and if this should be connected to the board GND as well? Currently I have a exposed copper as a heatsink but this copper is not connected to GND.
-
Depends on the manufacturer / device type.. So look in the datasheet of the one that you want to use.
-
@tbowmo
Thank you - I want to be able to use them all/different (ie. 5v, 3.3v, different manufacturer) so I wont connect it and just use it as a heatsink.
-
@tbowmo I agree, it would be per device specs. In many cases I see that connected to the middle pin (whatever that may be), but not always.
-
Made this two-button nRF52832 remote control:
It only draws power when one of the buttons is pressed.