[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself


View post   

File: 203 KB, 1440x1080, esp-nodemcu-32.jpg [View same] [iqdb] [saucenao] [google]
1717706 No.1717706 [Reply] [Original]

Previously /amg/ - arduino & microcontroller general.

An actual OP edition.

Microcontrollers (esp32, blue pill, arduino, ...) & single board computers (Raspberry Pi, Banana Pi, ...) welcome.

>What to post
- Questions regarding microcontrollers & single board computers
- Discussion regarding microcontrollers & single board computers
- Projects you are working on

>What should I do with my [insert hardware]?
Look here:
https://hackaday.io/
https://www.instructables.com/
https://www.reddit.com/r/raspberry_pi/ aka everyone is making magic mirrors
https://www.reddit.com/r/cyberDeck/
https://www.adafruit.com
- This is not an idea thread. Check the catalog, or make a thread for it.

>Usefull resources:

>Software
Ki-CAD
Your chipsets default IDE

>General electronics, also check their OP
>>>/diy/ohm

>Questions regarding software/OS on single board computers, unless specifically about GPIO
>>>/g/
>>>/g/fglt

>I have junk, what do?
Get rid of it.
Old thread: >>1689490

>> No.1717722

To add to the OP, since 1000 characters is never enough:

>News:

Anon made a pretty comfy nixie-tube display:
>>1689830
Anon has cool Soviet 7-segment displays:
>>1694510
Anon gets scammed:
>>1696371
A nice arduino based radio project and a dopplegänger:
>>1696551
>>1696621
>>1696624
Anon is poor:
>>1698903
A light sensor for a pumpkin light:
>>1703060
A multimeter pen + Cad housing:
>>1708963


This took longer than expected, so don't expect the news to become a regular thing.

>> No.1717725

Since so many people asked last thread, it may be a good idea to start some pastebins for stuff like tutorials, resources or an idea collection, but I'm not gonna put in the work, at least not right now.

>> No.1717730

>>1717610
ESP32 supports BLE, so yes. Check https://github.com/nkolban/esp32-snippets/issues/230#issuecomment-395182289

>> No.1717743

>>1717722
>so don't expect

>>1717725
>I'm not gonna put in the work,

nice start you lazy shit

>> No.1717744

>>1717743
Thanks.

>> No.1717746

>>1717706
>Projects you are working on

Working on a Raspberry Pi based flask webserver, used to serve custom cocktails at parties. Includes a cocktail machine, the webserver and a bunch of documentation. Really fun so far, but I still have a long way to go.

>> No.1717837

>>1717730
Thanks anon. I ended up getting a bunch of ESP32 nano clones and a single blue pill for shits and giggles

>> No.1717838

>>1717837
You're welcome, have fun.

>> No.1717872

Anything to say about ESP-WROOM-32?

>> No.1717879

>>1717848
I said arduino ide not arduino hardware, you have to load your code into the blue pill somehow and i sure as fuck won't use that filthy clusterfuck that is the native programming method for it

>> No.1717889

>>1717872
Never heard about it, Datasheet seems promising.

>> No.1717892

>>1717879
Arduino IDE would ignore one of the most important features of STM32 there is: debugging with breakpoints, otherwise "printf" does not count as debugging

>> No.1717894

>>1717879
I wpuld reccomend you try out CLion it has great embedded support

>> No.1717969

>>1717894
>it has great embedded support
I would fucking hope it does for 199$ a year.

>> No.1718103

Is there any json file for adding attiny12 to arduino ide? I can't find any anywhere, attiny85 and 13 was no problem, but i can't find shit for attiny 12

>> No.1718129

>>1717872
Better than any Atmel in terms of processing power, wifi and bluetooth built in, and all for less money than an Atmel chip. Only downside is 3.3V, but that is easy enough to get around.

>> No.1718139
File: 2.91 MB, 2560x1440, Screenshot_20191118-001339.png [View same] [iqdb] [saucenao] [google]
1718139

>>1717706
Question about TVout

So I salvaged this mini (ca 5") CRT and decided to have some fun with it. I'm making a simple videogame but I have the following problem; anything I change (add) to the program makes that it still compiles, but I get no image, a weird sound and basically it just doesn't work. My fear is that it's a memory issue, but the compiler says that just a small part of the memory (ca 30%) is used. It's basically just some lines and two miniscule bitmaps, you'd think an Arduino Uno could handle that.

Any ideas?

>> No.1718149

>>1717706
Can I talk about plc's or is this an /ohm/ topic?

>> No.1718162

>>1718139
I tried this a little while ago, and had the same issue. Was fine with simple texts, but once i sent X bytes to the video buffer, it would no longer display. I wasnt sure if it was a timing issue or a ram issue. I eventually gave up, but thinking about making a stand alone 'composite video driver', and using another micro to send it data.

>>1717845
I got one of the cheap $1 ones, but wasnt able to get the IO working with raw asm. Had no issues playing with registers and what not, and using the debug suit I could see it was working, but just wasnt able to get any IO. Has anyone here had any luck with it? Also, theres very little info online about them

>> No.1718181
File: 7 KB, 314x136, 1560082266245.jpg [View same] [iqdb] [saucenao] [google]
1718181

>>1717706
>An actual OP edition
>ESP32 DevKit Pic
Seems Legit

>> No.1718380

>>1718149
I'd say plcs are related, so go ahead.

>> No.1718381

>>1718181
Here's your (you)

>> No.1718405

I need a dev board for prototyping,
>drive many stepper motors, ~7-8, at least 4 concurrently, with some microstepping, at least 4x
>many IO pins for sensors and whatnot
>WiFi
>maybe driving a small TFT LCD
>decent memory
What are my options? I'd want to go with something like ST32, was looking at the Nucleo, F767ZI for example, but none of them have embedded WiFi that I could find.

>> No.1718411

>>1718405
>drive many stepper motors, ~7-8, at least 4 concurrently, with some microstepping, at least 4x
Maybe there's a board for this, but I think you'll have a lot more chances with a motor shield.
For one or two stepper motors a driver works enough, for more get a driver/motor shield.
>many IO pins for sensors and whatnot
Really depends on what you need. Digital? Analog? If analog how good does the resolution of the ADC have to be?
>WiFi
While integrated wifi is great, remember you can always get a wifi module and communicate with that.
>decent memory
What is decent? What for? For datalogging, sd cards are great, but not always feasible.

I'd say go on mouser/digikey and use their filters. The limiting factor will be how quick the chip is and I/O pins. The more externals you add, the more pins you need.

TL;DR - get a stepper driver board and a chip, no need ot limit yourself to one board that has both.

>> No.1718418

>>1718411
I didn't mean integrated stepper drivers, just enough pins and a fast enough chip to deal with it. Like an Arduino mega can theoretically drive 7 steppers, but it's not really fast enough to do it with microstepping. I'll use some external board with DRV8825 or something similar to actually drive the steppers.
Mostly just a lot of digital pins for things like limit switches and various sensor modules.
Memory in the sense that I can store a large program on it, not for data logging or anything of the sort.
What WiFi modules are usually used? Aliexpress returns a mess of various esp boards when I search for "wifi module".

>> No.1718476

>>1717879
PlatformIO supports the bluepill

>> No.1718498

Any gentlemen here have any good, not indian or chinese, documentation/learning material for stm32? Or am I stuck with heavy indian accents and st's garbage documentation?

>> No.1718507

>>1718418
>What WiFi modules are usually used? Aliexpress returns a mess of various esp boards when I search for "wifi module".
ESP8266 is pretty popular, aliexpress for some reason adds a bunch of integrated versions to the search result. Anything that has a serial I/O and wifi would work though.

>> No.1718512

>>1718418
esp32 is the ONLY correct choice

>> No.1718529

>>1718162
>>1718139
Figured it out btw. It was a memory issue but I tried to max out the resolution at first. I went back to the default TVout.h resolution (128x96) and this solved everything. The 'maxed out' res was something like 135x101 so it wasn't that big of a sacrifice.

>> No.1718583
File: 1.82 MB, 1080x1555, PartialScreenshot_20191118-214649.png [View same] [iqdb] [saucenao] [google]
1718583

>>1718162
Made this housing for it, it's a bit quick and cheap (made from osb) but it isn't a really serious project so it suffices.

>> No.1718584
File: 1.39 MB, 2330x3329, IMAG0739~2.jpg [View same] [iqdb] [saucenao] [google]
1718584

Quite an addictive game too

>> No.1718623

>>1718529
>>1718583
>>1718584
thanks for the update! I might dig it out and try again too. Your finished console looks great!

>> No.1718627

>>1718623
Thanks m8! It was a fun project and I might use the screen+case for other things in the future. Also going back to the thrift store to get more screens, I want to make one in a fancy wooden (maybe mahogany) housing with some brass details and have the screen depict a clock and maybe some info like room temperature and stuff like that

>> No.1718845

>>1718583
>>1718584

I really dig old crt tech and this looks really cool. Maybe the pic makes the housing look better than it is, because for a quick DIY project that seems sufficient. Thanks for sharing anon. On a side note, wtf is that game?

>>1718627
Wanted to do something similar down the line. Find a small crt tv and use it as a calendar, simply displaying what I've got to do that day/birthdays/reminders. Can't be too much because of resolution restrictions, but sounds like a neat project.

>> No.1718851

>>1718405
No dev board will have enough gpio pins for that many motors, you will probably have to use something like several arduino megas and add a wifi module on top like esp01 and have them communicate over i2c to each other
If some wifi enable board like that exists it will probably be some custom 3d printer or cnc board that will be rather costly, since depending on how big the motors are you may also need to use additional driver boards like for example 3d pritners have

>> No.1718857

>>1718851
You only need 2, at most 3 pins per motor, 21 IO pins is far from unheard of. An Arduino MEGA can already handle 7 steppers on its own, only that it's a slow board.

>> No.1718898

>>1718845
Thanks. Indeed, the housing is just some osb I had laying around with some paint on it. That game is, well, it's about a computer science teacher we had in high school, he had a pony tail so we figured he was gay so the joke was that classmates would be raped by him. The objective of the game is for one of my friends to be raped as many times as possible by said teacher. If he hits a wall, you lose a life. If he rapes you anally, you get a point. But he keeps going faster. You switch between the four stories of the school building with the knob controller. My high score is 140.

>> No.1718960

>>1718898
I love the concept and I love the execution. Is it FOSS/ downloadable anywhere? I love to collect weird software. Either way thanks for clarifying.

>> No.1718974

>>1718960
Kek thanks! The software I wrote myself so I guess it's FOSS, I'll upload it when I get home. Doubt you'll have much use for it though and the comments are in Dutch kek

>> No.1718978

>>1718974
Thanks! Take your time, /diy/ is a slow enough board that noone is going anywhere anytime soon.

>> No.1719080

I have to measure the rpm of electrical engine, that I'm gonna to make, for an assignment and I'm planing to do it use an encoder that has and infrared led side by side with one receptor and thinking on use a disk, made of a cardboard, with some hollow section, so I can have the difference in the signal.
So my doubt is as my encoder works based on reflection I wouldn't get interference with that configuration? Or would I be able to signal at all? Would be good to wrap the parts of the cardboard that aren't hollow to get a signal or a better signal?

>> No.1719083

>>1719080
First you need to learn how to write a coherent post.
Then order a chink non-contact tachometer and take it out of the plastic housing and say that you made it, good enough for your high school project.

>> No.1719085

>>1719083
ESL.
And I didn't order one cause it was too expensive and I thought I would be able to "make" one. And I don't have enough time to other anything.

>> No.1719087

>>1719085
Paint a part of the shaft black, leave a part of it shiny metal. Put an LED and a phototransistor against it. Shine one LED constantly, measure pulses on the other.
https://www.youtube.com/watch?v=uiWo-GEW4xg

>> No.1719096

>>1718978
https://gofile.io/?c=mNEPso

I've added English comments

>> No.1719107

>>1719096
Thanks. I can't try it until I'm back home (which will be a month at this point) but I saved it and I appreciate you uploading.

>> No.1719112

>>1719087
Thanks, dude.

>> No.1719237

What do you guys think of the new arduino 33's? Better than the esp 32? Same shit? I just got a 33 IoT in the mail and I'm trying to think of a cool project.

>> No.1719282

>>1719237
>ATSAMD21
>6 DoF IMU
>Crypto chip
>ESP32
I think they went with a very niche design, i fail to see why any hobbyist would need all of that in a single board

>> No.1719310

>>1719282
Its pretty much what I was going to do with a 32 and a nano for an onboard motorcycle monitoring/logging kit.

>> No.1719367

Can esp32 do bluetooth headset?

>> No.1719415

>Wemos D1 R32 ESP32
Looks awfully decent for its price, do i pull the trigger? So far i only worked with digisparks

>> No.1719427

>>1719310
Yeah, I meant that I feel like the SAMD21 is just there fpr no reason (for a hobbyist board), for the abstraction level that Arduino provides i think there are better boards like the M5Stack

>> No.1719432

>>1717706
I have an arduino nano an uno and a raspberry pi B+.. Is there a microphone shield that has high input range and decent quality for voice processing? The one I manage to find on ebay only go up to 10khz used for like switching on lights with sound. Also what frequency do I need to sample at for voice processing?

>> No.1719459
File: 194 KB, 367x258, pl2305.png [View same] [iqdb] [saucenao] [google]
1719459

>>1717706

What's the cheapest/simplest micro controller with some basic USB functionality? I think USB is insanely over-the-top complicated, but it's a necessary evil nowadays.

I liked the MSP430 line until I priced them out, and I think they were n-th degree overkill ARMs or something just to get into USB.
I just want to drive some TTL level I/O pins from a PC.

I found one I liked, the EFM8UB1 from si labs (It's an 8051 core) but it's still not as cheap as I had originally hoped, and the dev boards are pretty expensive too.

I want them to be cheap, because I'm driving random stuff with it (non opto-isolated motors, high voltage things with inductors, etc.) and I fully expect that I'm going to kill some of the little snowflakes with back emf and other spikes.

>> No.1719478

>>1719459
CH552? It's chinese and based on an 8051 core aswell it's pretty cheap (~$0.25 freedom bucks)

>> No.1719481

>>1719432
depends on what you use the audio for, an arduino could fall short with higher sample rates, as you need to take into account the time for processing and do the thing you want with that (save it to flash, add filters ...)

as for raspberry pi there should be some HATs, I only know of Seeed's ReSpeaker, altough it's a mic array HAT

>> No.1719521

>>1719459
The easiest way is to use second chip which translates serial into usb and vice versa, that is how all popular chips (or rather devboards they are on) like arduino or do it and that way you aren't severely limitng your selection of chips and can use the hobby industry standard chips like attiny or atmega or esp32

>> No.1719606
File: 55 KB, 761x422, Screenshot_433.png [View same] [iqdb] [saucenao] [google]
1719606

I want an arduino to be powered by either USB 5v
or from a battery charger circuit thing (TP4056). The thing is that theTP4056 apparently can't both charge the battery and supply current to OUT. The simplest thing that comes to mind would be to use one of those 6 pin switches in this way, hijacking the USB 5v somehow.

My question is: where do I hijack the 5v from / is there a simpler way that doesn't involve buying additional ICs ?

Getting it from the connector itself seems quite tricky since the wire is small. If someone can spoonfeed me where 5v goes and if it is possible to reroute it from the board that would be great, thanks.

>> No.1719672
File: 82 KB, 1024x576, 1574033241065m.jpg [View same] [iqdb] [saucenao] [google]
1719672

>>1718139

>> No.1719762

>>1719478
>CH552

Ahh excellent! Even the dev board is like two bucks (instead of $50). That's an almost consumable price point. Thanks anon.

>>1719521
>second chip which translates serial into usb

I found the CH340 series while nosing around the CH552 micro controllers, also at like ¼ yankee peso. This is much easier/cheaper than wading into the FTDI swamp. I'll try some of these, too. Many thanks.

>> No.1719816
File: 32 KB, 400x400, STM32F103ZET6-Minimum-System-Board-ARM-STM32-Development-Board.jpg [View same] [iqdb] [saucenao] [google]
1719816

>>1718512
Doesn't have enough IO pins for that, dummy

>>1718418
Get a STM32 with a lot of pins and design a baseboard for it
Are you, by any chance, designing a 6-dof robot?

>> No.1719817

>>1719672
Make it play horst wessel lied on a buzzer

>> No.1719820

>>1719762
CH340C for some reason doesn't like ESP32, CP2102 is much better senpai

>> No.1719825
File: 111 KB, 739x477, stm32407vet6_view01.jpg [View same] [iqdb] [saucenao] [google]
1719825

>>1719816
I've already ordered a STM32F407VET6 board for messing around with, I guess I'll see if I'm going to want something like a nucleo with integrated debugger and whatnot.
It's not a typical 6-dof arm, although I'd like to make one at some point. It's for an item storage robot.

>> No.1719894
File: 194 KB, 506x210, msp430g2553.png [View same] [iqdb] [saucenao] [google]
1719894

>>1719820
> CP2102 is much better

Interesting, not sure how anyone could screw up serial... it's been around for a few years now :-)
Problem is, the CP2102 is 12 times the price. Also it's on a QFN which is a bit more of a PITA to work with. The CP2102 is on a SOP which I have carriers for (already using them for transistor arrays). DIP would be ideal for easy socketing. I'm going to be using these with the DIP versions of the TI MSP430 stuff.

>> No.1719922

Are MOS 6502-based microcontrollers welcome here?

>> No.1720028

>>1719922
Care to put forth any specific ones? I've looked but haven't found many.

>> No.1720029

>>1720028
>not putting together your own out of an old Apple II

>> No.1720058

>>1719922

I think you can still buy 68HC11s as PLCs. Just the socket for that costs $50. They probably still produce it for the military (with deep pocket$$$)

>> No.1720059

Hey, so I need something that can measure how much ingredients it's dispensing, both wet and dry.

What do you all recommend? I also have a metal mold I need to be able to compact and air dry. Weird project.

>> No.1720062
File: 15 KB, 619x536, project.png [View same] [iqdb] [saucenao] [google]
1720062

>>1720059
This is the best way to explain it.

I need to be able to check an api regularly for orders and then do the following actions. What would be the best bet for the project? I need to be able to select one of several ingredients from a spinning wheel and get feedback on the dispensed measurements to make sure it's within margins, then combine, stir, mold, shit out on a conveyor to a curing chamber which is basically a hairdryer that doesn't stop running lol. Everything is room temperature.

What's the best programmable kit to use for this? I've done some things like controlling a watergun through the internet to protect my home but nothing of this magnitude.

>> No.1720065

>>1720062
actually I can combined all ingredients subsequently as long as I stir all of the wet ingredients when added to the dry, though I'm not sure how that would work, physically.

>> No.1720086
File: 132 KB, 256x323, bred.png [View same] [iqdb] [saucenao] [google]
1720086

>>1720059

Sounds like you are making only one of this thing — not a million of them. I'd use a raspberry pi, some a/d converters to weigh things and some motor drivers/solid state relays that plug into the gpio of the pi.

Also, bread machines already exist. They made millions of them, so they use a Super-H based MCU.

>> No.1720157

>>1719606
Solved it, to do it you need to desolder the usb polyfuse and grab power from there.

>> No.1720198

>>1720157
Usb 5v goes into the vin pin

>> No.1720232
File: 16 KB, 664x556, running a food thing.png [View same] [iqdb] [saucenao] [google]
1720232

>>1720062
desu man make it simple for yourself and use an arduino, maybe some big servos on a half gear so you can rotate the stuff around 360 (most cheapo servos only do 180, so gear/belt drive it up) that'll do your plate rotors

>> No.1720340

>>1720232
> "check an api"
> arduino

Unlikely with a tarduino, it's a bit limited. It's going to be taller than it is wide with all the "shields" you're gonna have to throw on it.

>> No.1720357

I need a small devboard that supports USB HID
Anyone has to say anything about Digispark?

>> No.1720376

>>1720357
I have several and they cab be programed via usb sirectly so they do have usb support

>> No.1720415

>>1718476
Different anon but fuck Platform IO
Shit wants to take over my entire editor, what the fuck is that?

>> No.1720436

>>1720415
What? Just use the CLI...?

>> No.1720439

>>1719922
yes.
>>1720340
serial communication exists, if it's for a lab you should be able to do most of the coding on the pc for the arduino. If you want it to be self contained, go with raspberry or clones. Either way >>1720232 is right, the basic functionality is simple but effective and that's good.

>> No.1720444

>>1720357
>USB HID
https://github.com/NicoHood/HID maybe?
There's a lot out there. We also had a similar discussion in this thread earlier, where the valid point was brought up, that using a seperate chip for USB <-> serial communication is a good choice, because it doesn't limit the choice of chip for the project. See >>1719459 and anwers.

>> No.1720446

>>1720444
The problem is that it would take place. Im talking about projects where every centimeter matters

>> No.1720706

>>1719672
crossposting /pol/ and /diy/ is the est, I apologise for nothing

>>1719817
Unironically did that once with a swastika of LEDs blinking to the melody

>> No.1721111

In arduino is it possible to do something like if you are uploading to say atmega you will have
const int poop = 5;
but if you are uploading to say attiny it will be
const int poop = 8;
?
so that way i don't have to change it every time i want to upload to a different chip

>> No.1721112

Any recommended resources for learning arduino? Or microcontrollers in general.
I have a clone and a bunch of different sensors, but I really have no idea where to start.

I haven't really programmed before, and my knowlege of general electronics and circuits doesn't go very far, but /ohm/ has some recommended books in the OP to get me started, and on the programming side of things, I'm just reading through the official documentation for the arduino IDE, and playing around with some of the commands

>> No.1721131

>waste over 3 hours by debugging why my shit isn't working
>notice the ide changed the frequency setting of the cpu so all the delays and times ran about 8 times faster
FUCK
i hate stupid bugs like these, super easy to fix, but the time and nerves lost to them is just sad

>> No.1721181

>>1721111

you might do it with compiler directives, like #IFDEF ...

avr/io.h has a shitload that might work, such as this small sample:


249 #elif defined (__AVR_ATmega3250PA__)
250 # include <avr/iom3250pa.h>
251 #elif defined (__AVR_ATmega328P__) || defined (__AVR_ATmega328__)
252 # include <avr/iom328p.h>
253 #elif defined (__AVR_ATmega329__) || defined (__AVR_ATmega329A__)
254 # include <avr/iom329.h>
255 #elif defined (__AVR_ATmega329P__) || defined (__AVR_ATmega329PA__)
256 # include <avr/iom329.h>
257 #elif defined (__AVR_ATmega3290__) || defined (__AVR_ATmega3290A__)
258 # include <avr/iom3290.h>
259 #elif defined (__AVR_ATmega3290P__)
260 # include <avr/iom3290.h>
261 #elif defined (__AVR_ATmega3290PA__)
262 # include <avr/iom3290pa.h>
263 #elif defined (__AVR_ATmega32HVB__)
264 # include <avr/iom32hvb.h>
265 #elif defined (__AVR_ATmega32HVBREVB__)
266 # include <avr/iom32hvbrevb.h>
267 #elif defined (__AVR_ATmega406__)
268 # include <avr/iom406.h>
269 #elif defined (__AVR_ATmega16__)
270 # include <avr/iom16.h>
271 #elif defined (__AVR_ATmega16A__)

the whole file is here:

https://www.nongnu.org/avr-libc/user-manual/io_8h_source.html

>> No.1721185

>>1721111
You'll need to use the pre-processor.
I can't remember what the names the compiler uses, but you have something like this:

#if defined(__AVR_ATmega32U6__)
#define poop 5
#elif defined(__AVR_ATtiny84__)
#define poop 8
#endif

You'll need to check for each individually MCU you plan to support
Sorry, I can't remember where all of these target MCU macros are defined, but you can probably find it in the AVR-GCC documentation.

>> No.1721190

This might be a bit beyond the scope of this thread, but can someone explain to me the difference between virtual memory and containerization? I'm currently learning about memory mappers and paging.
From what I understand, virtual memory maps each process into it's own virtual address space. Is the only difference that containers also isolate the filesystem?

>> No.1721199
File: 613 KB, 1500x1500, 91O05A7aWXL._SL1500_.jpg [View same] [iqdb] [saucenao] [google]
1721199

Looking to learn some basic microcontroller/electronics stuff and thinking about buy this cheap kit to get my feet wet. What am I gonna be able to get out of this and what should I look into after? Coming from a background of zero experience with this kind of stuff.

https://www.amazon.com/ELEGOO-Project-Tutorial-Controller-Projects/dp/B01D8KOZF4/ref=pd_sbs_147_1/135-3104986-4941849?_encoding=UTF8&pd_rd_i=B01D8KOZF4&pd_rd_r=7145767c-1b5e-4240-8eb3-0732f0fbb9c2&pd_rd_w=kt2jh&pd_rd_wg=Lmttc&pf_rd_p=5873ae95-9063-4a23-9b7e-eafa738c2269&pf_rd_r=1G2DTZ6E3HYPXG38YWRS&psc=1&refRID=1G2DTZ6E3HYPXG38YWRS

>> No.1721256

>>1717969
You can try month trial which csn be prolonged with a very simple hack

>> No.1721261

>>1719459
STM32L0?

>> No.1721294

>>1721199
Its a fine kit, but you really want to have a basic 'end project' in mind before you get it. If not, you will probably end up reading a few sensors, getting bored with it and popping it back in the draw

>> No.1721441

>>1721294
Any ideas for a basic "end project"? Makes sense to work toward something concrete but I honestly have no idea what is possible with these things that I'm capable of building.

>> No.1721483
File: 8 KB, 225x225, (JPEG Image, 225 × 225 pixels).jpg [View same] [iqdb] [saucenao] [google]
1721483

>>1717706
anyone got an easy libray/example of using lora sx1276 with pic microcontroller?
ive been trying but cant seem to get lora to read from transmitter lora. pic to lora communication is working tho.

>> No.1721509

>>1721483

Are you trying to use that lora wan nonsense or trying point-to-point? The differences and setup are vast oceans apart.

>> No.1721513

>>1721509
point-to-point
been trying to port this
https://github.com/sandeepmistry/arduino-LoRa/blob/master/README.md
lora is definitely seeing something from the transmitter i just cant get the data.

>> No.1721514

>>1721483
which PIC. Does it have hardware SPI?

>> No.1721516

>>1721514
12f1822 it does have spi, which im sure is working. been reading/writing registers and it looks good, just for recieving that idk.
ok hmmm. im actually getting something. using implicitheadermode and giving packet size to a function.

>> No.1721521

>>1721190
>containers also isolate the filesystem?

Virtual memory (and page table mappings) itself is largely a hardware thing. A lot of the things people call "containerizing" are just os tricks and name spacing which take advantage of virtualizing other things (other than memory, like networks).

The file systems in containers are often configured to work like their virtual memory counterparts with "copy on write" (COW) so every container shares the same data until the contained process tries to write to it. At that point it gets copied (either the memory or the filesystem data) and it becomes unique to that process.

It's nothing new, COW came to home-gamers with the 486. As far as I can tell, containerization is popular because software is so buggy and insecure nowadays, so zoomers want to run everything in a container.

>> No.1721540

>>1721112
So a programming crash course online (those shitty free ones) or, better, use a book. You want to understand the basics: variables, conditions, loops, functions, what types of variable there are. This alone should bring you quite far. From there it's a matter of figuring out what you want to do, how you get the required data (sensors) and how you read/write it. What language you learn the basics of doesn't matter too much (do not ask /g/, learn a normie language instead) but obv. The C family will be closest to arduino. Java is widespread and python is easy to learn however. Maybe learning what a class, an object and a function are is also good, as well as what local or global means for variables.

>> No.1721542

Does anyone have any links for learning VHDL?

>> No.1721544

>>1721441
For a beginner, Arduino can do anything but work with huge amounts of data, that's where you'd use a RPi.

As for beginner projects, check the OP for ideas, here's some more:
Weatherstation,
Automatic opening and closing of window blinds based on light levels,
Watering system,
Led Lightsystem that reacts to the music in the room (slightly more advanced),
Anything that moves (robot arm, small robot that follows a line),
There's plenty more. Just think a bit about where it'd be useful or what would be fun.

>> No.1721548

>>1721542

Are you tired of the thousands of existing MCUs and want to design and fab your own? Please post pic of your home epitaxial process when you're at that point.

I'd look at some existing stuffs: I believe there are VHDL designs for the 6502 for example which is a pretty minimal processor.

>> No.1721725

>>1721542
Learn SystemVerilog instead
Read the standard

>> No.1722070

I'm making a soundboard with a Bluepill. Does anyone have a speaker they recommend?

>> No.1722191

>>1722070

You can find those oval speakers in old CRTs left by the side of the road. If you're looking for something with a "squat" profile.

>> No.1722230
File: 894 KB, 958x611, 1573980447766.png [View same] [iqdb] [saucenao] [google]
1722230

Frens,

This is a arduino pro mini clone I got years ago but never used. I can't tell whether it's the 3.3V or 5V one, any of you see a clue?

>> No.1722234

>>1722230
>flip the board and check the markings
>if not marked, give it 6-12V on RAW, measure VCC

>> No.1722260

>>1722234
>6-12V on RAW, measure VCC
Ahh yes of course, thanks.
Turns out it's 5V.

>> No.1722401
File: 27 KB, 864x622, PowerCircuit.png [View same] [iqdb] [saucenao] [google]
1722401

Hello friends. Are there any simplifications I can make on this power supply circuiit?
- I am wondering if it is safe to drop D1
- I think I could drop R4 and connect DC level to pin 3 of the Barrel_Jack_Switch and use an internal pullup. Never tried using this pin before though.
- Anything else a smart anon may notice.

R1 and R2 are required because I don't want to buy more resistors and BAT_LVL will be attached to a 3.3v ADC.

>> No.1722406

hello /diy/

Is it possible to use a GPIO pin of an arduino as antenna to receive 13.56mhz signals? Do I need to add a wire/antenna?

>> No.1722422

>>1722406
no, but you can connect an antenna to it. You'd absolutely need an amplifier though also you won't be able to sample much over 5kHZ.
TL;DR, possible, but useless.

>> No.1722423

>>1722401
I can't really help, but consider asking in /ohm/ as well, this is exactly their kind of thing.

>> No.1722560

>>1722422
Too bad. Thanks for the help anon.
I'll look into amplifiers then.

>> No.1722611

>>1722423
Ok, Thanks anyway.

>> No.1722692
File: 177 KB, 1919x756, IMG_20191124_192121312.jpg [View same] [iqdb] [saucenao] [google]
1722692

>>1717706
I'm trying to connect a keyboard through usb to a pi a+ by using the test pads. Why are there two black wires on this connector? They both seem to be ground. The red wire is Vin and the green and white wires are D+ and D- right? It's not working for me though, and I've tried multiple combinations. Why are there two grounds?
I'll post a picture of the pads on my pi next.

>> No.1722698
File: 113 KB, 773x956, IMG_20191124_192104411.jpg [View same] [iqdb] [saucenao] [google]
1722698

>>1722692

>> No.1722768

>>1722692
>Why are there two black wires on this connector?
Some cables/connectors keep signal GND and the connector's housing as separate lines. Most USB devices shorts them in the PCB tho

>> No.1722984

>>1717706
>want to make keyboard wireless
>should be rechargeable via usb
what would be the way to go if i want to achieve the lowest possible latency? I found bluetooth takes up to 60ms end-to-end, sounds like a lot if i want to play fps-games

>> No.1722990

>>1717725
>I'm not gonna put in the work
/diy/ - Do It Yourself

>> No.1723005
File: 459 KB, 2048x1536, IMG_20191125_144855.jpg [View same] [iqdb] [saucenao] [google]
1723005

yayyyy wrooom wrooom wrooooom

my wroom wrooms are finally here

>> No.1723008

>>1723005
wait a minute
there are way more holes than there are pins
i can't believe chinks jewed me out of 5 cents worth of extra pins

>> No.1723075

>>1723008
Then you are new to buying electronics from overseas. That's just to be expected, never been in /csg/ over in /g/? You get cheap stuff and in exchange you won't get anymore than the absolute minimum

>> No.1723086

>>1723075
i am paying premium and i expect premium services
in other ali stores this same module cost $.5 less that the one i got it from

>> No.1723089

guys, i need to make detector of toxic gasses with several sensors (5+ probably) and i've been looking over internet and found there are modules for arduino.
i have no experience with arduino, but seems easy enough, is there maybe a better platform today?

>> No.1723104
File: 179 KB, 823x540, io.png [View same] [iqdb] [saucenao] [google]
1723104

I ordered this shit time ago when I still was into arduino and stuff. It collected dust inside a drawer and now I forgot what I ordered it for and where to even start learning about it.
What things can I do with one of these?

https://www.aliexpress.com/item/32807531243.html?channel=twinner

>> No.1723117

>>1723089
Arduino is the cheapest and easiest, but you can use ESP if you want wifi.

>> No.1723132

>>1723117
thanks anon

>> No.1723139

>>1723117
ok, am i reading this right or is arduino uno $3 on ali?

>> No.1723146

>>1723139
That sounds reasonable. Nano is more practical though, and another dollar cheaper.

>> No.1723164

>>1723146
thanks anon, that's really dirt cheap

>> No.1723488

>>1723086
Then you know where to buy from now on. Go cheap and embrace the shittyness

>> No.1723512

>>1723104
what do you mean was? arduino projects are the best hobby i ever had, it is literally impossible to get bored by it since the iot possibilities are limitless


>What things can I do with one of these?
that is a very autistic question son, if you used arduino before you know the answer is anything. esp32 is basically arduino uno except much faster with more memory and with bluetooth and wifi and better adc, the only shitty thing about it is its unrealiable watchdog
the module you have has an oled display attached so you can also show shit on it, having a hard wired display on the dev board is a very case specific gimmick as for most projects it's useless

>> No.1723513

>>1723164
if you need more pins or multiple hardware serials get the arduino mega
but if the sensors use i2c or 1wire (which is actually 3 wires btw) then you can connect all the sensors to the same wire and save pins

>> No.1723793

is there an open source RTOS worth considering other than FreeRTOS?

>> No.1723830

>>1722401
is this the project itself or do you need a 5v regulator? Linear regs are terrible, and going to get very very hot when its close to its 1A. Why not get a buck converter?

>> No.1724175

dudes im just startgin with arduino and pcb bulding, where should I buy small electronic parts? Aliexpress is cheap but the shipping costs are the 40% of the total cost

>> No.1724193

>>1724175
you'll find out that chink components have a chance of being fake or QA rejected (depending on the store). Digikey/mouser are the most reliable ones so try to stack your orders or stick with some chinese stores with high sales and reputation

>> No.1724199

>>1724175
Generic parts, open source parts or experimenting parts (for my own experiments) I buy from AliExpress, for example 100 push buttons for 1$. Buy in bulk. Cheap shitty LEDs , resistors, potentiometers, headers as well.

Any thing important or other I buy from mouser. Get enough together for free shipping, if you know other people who order from them, just order together. Mouser is also my go-to for deciding on parts and for smd.

I'm using mouser because I'm in the EU, digikey should be the same

>> No.1724202

>>1724199
>>1724193
bless you anons

>> No.1724211

>>1724202
Octopart is your friend, too

>> No.1724841

>>1724175
Tayda is king for the entry-level hobbiest.
Cheap as fuck, $1.50-$5 shipping based on weight. For things like switches and pots that tend to be expensive, they seem to do some quality screening from chinkshit suppliers to get you quality parts for less

>> No.1725329
File: 15 KB, 450x319, light switches.jpg [View same] [iqdb] [saucenao] [google]
1725329

>>1717706
Is there a way to send arduino signals from a regular light switch (the ones i have are the type that always come back up to the original position)? I want to control an rgb light with it, for example: set the colour to red if the switch is pressed 2 times within 2 seconds. This switch would not be connected to anything other than the ardino, I would control the on/off state of the light with a different switch

>> No.1725524

>>1725329
Do you mean wirelessly? How far away from the switch will the Arduino be?

Your options are basically:

- put the Arduino behind the switch and wire them up

- put a sender behind the switch and a reciever to the Arduino (radio, Bluetooth, pick your poison)

- put a small wifi enabled microcontroller behind the switch. Esp8266 might be overkill already. Then communicate via WiFi or the internet.

Either way, it's absolutely possible.

>> No.1725526

>>1725329
(2/2)
If you are okay with putting the Arduino behind the switch/wiring them up it should work like a 2 position switch, so coding for it would be easy.

>> No.1725623

>>1723104
I use one to log various sensors to my web servers data base. Things like lux, temp, humidity, sound, rain fall, total solar power today, sunrise\sunset, moon phase

>> No.1725797

Chibios or freertos? What are my boys opinions?

>> No.1725862

>>1721199
A good kit, try to learn how to use each component. eventually try to take out the atmega328 and learn to program it. sleep modus to save power and be sure to read the datasheet for using registers to save up space and get better performance.

>> No.1725893

Can a CS major become an embedded programmer? If so, how?

If I want to do embedded would computer engineering or electrical engineering be a better choice?

>> No.1725947

>>1725524
I would like to avoid wireless, but the wire from the switch to the arduino would need to be 10 meters long. How would I wire them up exactly, like what arduino pin would I use and what kind of signal would I detect?

>> No.1725989
File: 166 KB, 2591x3900, front.png [View same] [iqdb] [saucenao] [google]
1725989

Who do folks use for PCB fabrication? OSH park wants $200 USD for this.

Also, while I'm here, this is my first kicad pcb design. Thoughts?

>> No.1725990
File: 171 KB, 2591x3900, back.png [View same] [iqdb] [saucenao] [google]
1725990

>>1725989
reverse side.

>> No.1725991
File: 570 KB, 1920x1055, Screenshot from 2019-12-01 16-05-00.png [View same] [iqdb] [saucenao] [google]
1725991

>>1725990
And 3d model from kicad. It's going to be a enigma machine powered by an arduino

>> No.1726016

>>1725893

Yes, by forgetting about functional programming and all the other inefficient nonsense they tried to hammer into you.

> forth
okay

>> No.1726017

>>1725989
It's a lot cheaper (per board) if you need a lot of them. Get 10 and sell the other ones.

It has buttons and LEDs on it. Everyone likes that shit.

>> No.1726048

>>1725947
I'm assuming the Lightswitch switches between on and off once pressed, so you can act as if it's a switch instead of a button.
Wire one side of the switch the same way you'd wire a button. There's a lot of tutorials if you Google it.
Then write some code so the pin switching from GND to VCC (& opposite) acts as a push button. The code needs to be slightly different than a button, because a button returns to a normally closed position, your light switch does not.

>> No.1726049

>>1725991
That looks so cool. Will you make the Gerber files available?

I'm normally going with JLB pcb or PCBway. Not sure how much sense that makes for you because this is a relatively big board , so Shipp might fuck you over.

>> No.1726050

>>1725991
Alternatively what
>>1726017
Said. I can see this selling well on tindie

>> No.1726052

>>1723008
Kek fella got JEWED

>> No.1726059

>>1726049
Thanks, I'll look into those. Also, sure, if you like:

https://we (.) tl/t-mED8BMqdYt

>> No.1726133
File: 17 KB, 320x320, 54253.jpg [View same] [iqdb] [saucenao] [google]
1726133

Dear /mcg/,

My flight simulator pedals have bitten the dust. My computer will still detect it but receives no usable input. So I'm thinking of cracking it open and sticking an arduino leonardo in.

The pedals pretty much work with 3 analogue resistors (one for the rudder, 2 for the toe brakes).

Is there anything I can be doing to improve it's accuracy or performance, besides just wireing the 3 resistors to the analogue ports and making a program for the axis?

Yours truly,

Anon

>> No.1726137

>>1726048
Thank you

>> No.1726147

>>1726133
Do you mean resistors or do you mean potentiometers? If you mean resistors, consider attaching potentiometers, if that's possible. If you already have potentiometers, your accuracy is limited by the ADC (Analog to digital converter) of the leonardo. You could either buy ADCs and attach them between the potentiometers and the digital pins, or use a microcontroller with better inbuilt ADCs. However I'd be surprised if you needed more accuracy than what the inbuilt ADCs need.

>>1726137
You're welcome, good luck.

>> No.1726152

>>1726147
They were indeed potentiometers.

As far as accuracy goes I guess it'll probably be enough, though I really want to make sure that the output is stable when the pedals are steady. since a little braking on one of the wheels or some wiggling of the rudder might end up having me buy a farm.

Thanks for the assistance.

>> No.1726158

>>1726152
>though I really want to make sure that the output is stable when the pedals are steady.

You might want to consider implementing this on the coding side of things. A potentiometers reading is dependent on the accuracy of VCC, so if your HIGH voltage potential isn't constant
the value will vary. Also there could be small variations (think 0.1% of the full potentiometer range) even without it.

If these bother you you can add code that for example only triggers a change when the potentiometer reads +-5 or something. This way small drifts etc can be mitigated. You have to figure out if you want to give up some control for stability or not at the end of the day, so you'll just have to try stuff out. Since it's on the coding side it's easy to adjust later though, so thatt's good.

>> No.1726702

>>1719672
Thats a really tiny CRT whered you get it?

>> No.1726842
File: 1.45 MB, 3200x2000, d83c9160-89da-4d96-94ec-18e9fe03ce0d.jpg [View same] [iqdb] [saucenao] [google]
1726842

>>1717706
i am working on your dog

>> No.1726917

Any idea how pet microchips work? I want to make a feeder for my cat that only opens for him, but I'm not sure how their microchips work. Are they just RFID? I wouldn't need to interpret the data at all, just store it and check if it's equal when scanned. I'm very much a beginner with this stuff, and this seemed like a doable project.

Here's an example of what I'm talking about: https://www.amazon.com/gp/product/B00O0UIPTY

>> No.1726953

>>1726917
Just realized this isn't /ohm/. There's no /ohm/ thread up and this was the only result when searching it lol.

>> No.1726964

>>1726953
>>1726917
RFID is close enough to fit both threads.
If it is RFID, just add a basic reader. The issue is RFID range is dependent on a lot of factors and your pets won't willingly press the microchip to the reader. You can maybe use better readers, but if that doesn't work look into Electronic Article surveillance (EAS) systems. These typically have better range. Might consider adding a tag to the collar or something.

>> No.1726969

>>1726953
>>1726917
From the article description:
>veterinary implanted microchip or RFID collar tag

You want an RFID reader but add an antenna that goes around the animal when it wants to eat so you can extend the range.

>> No.1726980

>>1725991
Looks bretty good. If you're trying to cut cost make your board more dense, even if it means going to 4 layer. Also go smt, parts are cheaper and use up less space. I think the size of that thing is what's driving the costs way up

>> No.1726984

>>1725893
If you want embedded yes EE/CE is a better choice

>> No.1727091

>>1726969
So do you think that's what the arch that goes over the cars head in that link is? Or is it EAS like >>1726964 said?

I have no idea how antennas actually work. Guess it's time to do some reading.

>> No.1727093

>>1727091
>So do you think that's what the arch that goes over the cars head in that link is? Or is it EAS like >>1726964 said?
Both of these posts were me anon.
Either way, I think it's RFID because that's what they say in the article description. I didn't visualize making the animal/pet go through the antenna, so I didn't think a passive RFID tag would have enough range, that's why I said EAS (which often uses RC) was a possibility.

You should read up on basic passive RFID tech (TL;DR it's a chip and an antenna) and antenna tech in general.

https://1oomzzme3s617r8yzr8qutjk-wpengine.netdna-ssl.com/wp-content/uploads/2017/04/RFID-basics-Fig-3.jpg

Is how most passive RFID tags look if you open them.

Since the tags normally have low range antennas your best approach is making the reader read over longer distances.

>> No.1727145

Any problems transmitting spi from board to board, possibly multiple slaves, 1 on each board? The signal would be clocked pretty low <8 MHZ and no wires just headers or some form of board-board interconnects. I'm not sure if all the impedance changes will fugg me and can't find much online. Thanks boyos.

>> No.1727294

>>1726702
Not op, but I just salved one from an old karaoke machine. 5” display as well. I’m gonna try something like OP did possibly in the future.

>> No.1727297

>>1718139
That’s a very cool project! I just salvaged one of these displays recently. I (not thinking ahead...) Salved the display driver board but still wanted to use the display for a project. Did you make the driver board on your own? And if so did you find any good recources for driving such a display?

>> No.1727916

If I wanted to read and write information from and to an arduino over serial, is there a standard class or something. I need to read in large amounts of data for a project and analyze it on my computer.

>> No.1727984

>>1727916
Something standard on the computer side? Just use whatever serial capabilities your language of choice has.

>> No.1728006

Why do all jobs require 32 bit mcu experience now? Are 8 bits obsolete in the industry?
Should i get st nucleo dev board to into arm and shit? It looks quite neat. Hope it's not baby tier arduino type stuff.

>> No.1728011
File: 59 KB, 816x493, 1575434722741.jpg [View same] [iqdb] [saucenao] [google]
1728011

>> No.1728317

>>1728006
>Are 8 bits obsolete in the industry?
It's the 21st century, grandpa.

>> No.1728372

>>1728317
I was talking about embedded
They seem useful

>> No.1728402

>>1720059
Why not have weight sensors?

>> No.1728407

>>1722692
Hey anon I am working on a usb keyboard project, and I am stumped, and curious if you can tell me what you're working on, probably help me with mine.

>> No.1728488

>>1728011
Hey anon I was thinking of buying some of these esp32 cams, can you give me your input on the quality and reliability?

>> No.1728489

>>1727984
But my language of choice is c++. I have an old project where I found a pretty good serial class, but I have no idea where I got if from so I cant break it down and figure out how to tweak it.
I see c# has something built in, but Im not too comfortable with that language. I might use it anyways because it has useful math functions and would be easier to graph.

>> No.1728530

>>1728489

If you want to, you can practically write low-level C code and C# will compile and run it.

Then you can hand the working code to some zoomer that will take your one-off throwaway code and refactor it into a huge, generic class hierarchy while simultaneously breaking it, bloating it, and making it perform orders of magnitude slower.

>> No.1728683

What board should I buy for IoT cheap monitoring? I prefer arduino boards due the simplicity

>> No.1728771

>>1728683
ESP8266 are cheap with WiFi, also supported by Arduino IDE & libs

>> No.1729084
File: 41 KB, 600x340, ESP8266_module.jpg [View same] [iqdb] [saucenao] [google]
1729084

>>1728683
You can program even the tiny ones with the Arduino ide btw. No need for the ones that come with a ton of pins if you don't really need one. Only thing is you need a serial adapter, or to wire it up to an Arduino to use it's adapter for the programming.

I have ones like pic related as thermometers.

>> No.1729259

good morning /mcg/
holiday vacation is starting soon and i want to build a small usb hid that sends some powershell-commands to my win10 pc. The device should run a lcd/oled display+2 rotary encoders over i2c and 2-3 buttons.
What small board should i order for that task?

>> No.1729286

>>1729259
I have not much experience with HID devices, so wait for others to answer, but I'd look into the arduino nano rubber duckies. Should be possible to add a screen and rotary encoders. Post it here once you are done, sounds like a fun project.

>> No.1729303

>>1728488
https://youtu.be/xvjRlBHmewY?t=468

>> No.1729504
File: 873 KB, 1242x1239, 1562570157051.jpg [View same] [iqdb] [saucenao] [google]
1729504

I have a bunch of ESP8266 and arduino. How do I turn these faggots into a dimmer I can control from the internet/intranet or from my phone? Should I get ESP32 for BT? Is there an easier way?

>> No.1729659

>>1729504
What part do you not get?
How to host a webpage locally?
How to reciever wifi data/signals?
How to dim a light?

>> No.1729709
File: 33 KB, 265x228, stev.jpg [View same] [iqdb] [saucenao] [google]
1729709

>>1728372
Not when a 32bit costs the same.

>> No.1729774

I'm trying to speed up the PWM on pins 5&6 by changing the prescaler. Setting it to /8 works fine, and the 7.8kHz PWM works fine.
But why is it that the 62kHz PWM only has a fixed duty cycle? I am aware of the OCRnA/OCRnB hack, which forces outputA at 50% and lets output B count up to OCRnA's arbitrary value, but are these really default settings?
Should I just set all of TCCRnA and TCCRnB manually?

>> No.1729785
File: 48 KB, 861x646, IMG_20191207_020545.jpg [View same] [iqdb] [saucenao] [google]
1729785

I've made an volume controler using digispark and rotary encoder.
Cant make any decent casing for it to save my life though.

>> No.1729790

>>1729659
I don't know what hardware parts I need. I was gonna get x11, I think I need relays. How hard is it to hook it into the light switch power, since their voltage is rated low? I kept getting confused by online instructions.
Also how hard is it to set up a motion controlled switch for a ceiling light (4 bulbs)

>> No.1729813

>>1729504
https://github.com/xoseperez/espurna/wiki/Hardware-Wemos-D1-Mini-Relay-Shield

Well, if you just want to grab parts and not code, this.

>> No.1729839

I want to build a robot to use as auto-liker for instagram on my phone. Do you know if there is any tutorial for this kind of robot? Where do I start?

>> No.1729877

>>1729774
Actually, I found my problem. LM358's are shit.
What's a good single-supply op amp for buffering/handling PWM?

>> No.1729937

>>1729877
TL08x chips are less noisy but consume more power
If you're using PWM, why not use a Schmitt trigger?

>> No.1729996

>>1729937
I don't need six of them.
Does TL08x pull down to the negative supply? I'm trying not to mess with negative voltages here

>> No.1730063

>>1729790
Relays are great for on/off switching.

Hooking into the light switch power is easy, even with high voltage. As long as your parts are rated for it you won't have issues.

>Also how hard is it to set up a motion controlled switch for a ceiling light

If you only want to control on/off, very easy. If you want to have dimming, it depends. If your lights are LED you should limit brightness with a PWM signal. If not, look into energy efficient ways to lower the voltage.

Tl;DR It should not be very hard

>> No.1730064

>>1729839
For fun or function? If it's for function, a program interfacing with an API should be much better. If it's for fun, look into a simple servo controlled robot arm, add something the phone registers to the end (those touchscreen pens or some shit) and program the movements. Should be pretty easy.

>> No.1730074

>>1729996
TL08x won't work unipolar. For that you might want a TS912 which is rail to rail within ~40mV.
How do you have your 358 setup and what's the problem with it, anyways?

>> No.1730267

Is there any full-fleged SOC's comparable to modern phone processors available?

I want to make a product and it's like I'm almost stuck using some open-source hobbyist meme shit.

I could do the breakout, power management, pcb design, and filtering with no problem just need the chip and documentation

>> No.1730300

>>1730267
Why do you need that much power? What purpose is it for?

>> No.1730448

>>1730074
The 358 has a unity gain, noninverting buffer on one amp (just short the inverting and output together), and a sallen-key LPF on the other. It takes PWM, and gives flat voltages at the output, ideally <5mV ppk. At 7.8kHz, the filter wasn't doing it's job, and at 62kHz, I was getting some limp, nonrectangular output out of the 358's buffer. Sending the PWM directly from the arduino to the LPF seemed to be loading it down, and giving inaccurate DC voltage out.
I think I'll slap another LPF on it for the time being, hopefully that does the job. Thank you for suggesting the schmitt triggers.

>> No.1730479

>>1730267
Mediatek makes some but I couldn't find it on digikey or mouser

MTK6737 was the chip advertised in a smart watch I used awhile ago. It kind of sucked, but it's not really the chip's fault, it was the interface.

>> No.1730494

>>1730267
https://www.mouser.com/new/onion/onion-omega2s-omega2sp-modules/

This guy too maybe

>> No.1730624
File: 26 KB, 331x500, 8051.jpg [View same] [iqdb] [saucenao] [google]
1730624

How relevant are 8051 today? I know they're widespread, but I was surprised to find a book on them published in 2018.

>> No.1730636

>>1730624
8051 its versatile there's even USB devices implementations that run on 8051 cores (can't remember which ones but I definetily have seen them in the wild)

>> No.1730638

>>1730624
>>1730636
here's a list of ICs that have an 8051 core
http://www.keil.com/dd/chips/all/8051.htm

>> No.1730642

>>1730300
A decent looking GUI on a IPS screen, probably MIPI-DSI or RGB24, OTA updates, enough space and speed for tier encryption, and features... 60fps at 1080 would be nice.

Pretty much consumer electronics
>>1730479
Found the datasheet, they probably want a contract for 10,000 before I get samples, even though it's only used on chinese meme phones
>>1730494
Not nearly enough pins to be useful for anything, they hiked up the price to 12 a unit for something that gets smoked by a pi zero, bet it would work great for a fucking led lightbulb. If they had the compute module 1 for the same price as the zero in bulk, we would be doing business.

I'd be down for some of that new RISC-5 jazz but nothing open source has ever been finished for realistic money, SiFive looked promising but they charge insane money for "custom hardware" and market it as "only having what you need'

Unless you have an experienced R&D team (and even then, people overestimate performance all the time and end up with garbage) that order what you need shit is useless.

Honestly this probably just comes down to established companies not turning profit on making socs for startups without big $ in hand

Or is this how the establishment shits on innovation?

>> No.1730730

>>1730642
I'd go with anything with ARM Cores and GPU. Maybe the i.MX family From NXP.

Chink processors afaik are a pain in the ass to work with: incomplete datasheets, terrible support, GPL violations (no source code), NDAs, trade sanctions....

RISC-V lacks an (Open Source) GPU so it would be hard to get 1080p60fps

>> No.1730864
File: 115 KB, 1440x1080, esp32-uno-d1_n1[1].jpg [View same] [iqdb] [saucenao] [google]
1730864

>get ESP32 uno clone
>upload a simple serial return code that keeps sending message each second
>can no longer upload anything because it will no logger connect even if i keep the boot button pressed for the whole time

>> No.1730942

>>1730864
you should only need to push it once. For some ESP32 dev boards you don't even need to press the button. Did you unplug it and replug it? Is it showing up in the choices in the ports?

>> No.1731127

>>1723793
what is wrong with FreeRTOS ?

>> No.1731247

>>1730864
So its like a clone of a clone?

>> No.1731350

>>1730864
why would you use gay shit like that when you can use the smaller and better esp32 dev board that has been around for ages?

>> No.1731462
File: 109 KB, 1080x1053, received_2567682729975238.jpg [View same] [iqdb] [saucenao] [google]
1731462

Using a wemos D1 mini

>> No.1731575
File: 419 KB, 640x573, large.jpg [View same] [iqdb] [saucenao] [google]
1731575

Can I trust an EPS8266 to be online 24/7 and retrieve the current time for gardening purposes? How is a wi-fi failure handled by the ESP8266, does it reconnects automatically? Would I be better of with an arduino nano and an RTC?
Any tutorials that cover the basics? I already know how to use Arduino
Thanks.

>> No.1731821

>>1731575
Its fine if you don't use serial and feed the watchdog. When it crashes it crashes miserably.

>> No.1731874

>>1731462
What am I looking at? Looks like a model of an apartment complex with a billboard.

>> No.1732281
File: 124 KB, 1000x685, Arduino-Nano-Pinout.png [View same] [iqdb] [saucenao] [google]
1732281

Arduino question. pic not related

I've gone through the blink without delay sketch and I want to do a more complicated project with an I2C sensor, using the same principles with the millis() function. Anybody have a tutorial or general idea for how to efficiently control lots of timed events in Arduino? This adafruit tutorial below was the closest I've found so far, but I think their code is buggy because they don't have a previousMillis and currentMillis variable for each LED (so it resets to 0 before the next LED can be compared the millis). Maybe I could just modify it so it actually does, but I'm a noob to OOP. If that's the right direction though that's what I'll try

>https://learn.adafruit.com/multi-tasking-the-arduino-part-1/a-classy-solution

>> No.1732297

>>1725989
Seeed studio but you have to wait a little bit longer and they will append an internal tracking ID to your silkscreen layer somewhere. You get more choices for board thickness, solder mask color, etc. as well when compared to OSH park.
Don't give OSH park your money, their solder mask is absolute hot garbage and it's a gamble if you get a silkscreen that lines up correctly.

>> No.1732303

No, you're wrong. Look up how classes work and how instances of classes work. Each instance has its own independent previousMillis unsigned long stored in memory. When you call update on each of the LEDs, it runs Update() for that specific instance. The unsigned long currentMillis is only seen and known within the context of the update member function when it is called and only needs to be known to check against that LED's previousMillis value.

You are right though that this is a good way to handle many sensors at once. Make sure that your read function does not take too long.

Another option would be to use a timer interrupt. Again, if your read function takes too long and you can't have your main loop paused for that long, then you may set flags that a specific sensor needs to be read again in the interrupt service routine then handle that when safe to do so in the main loop. Adafruit's tutorial doesn't cover the concept of setting flags in the ISR but that's a common safe practice as well.
https://learn.adafruit.com/multi-tasking-the-arduino-part-2/timers

>> No.1732305

>>1732303
regarding this
>>1732281

>> No.1732332

>>1732303
>Each instance has its own independent previousMillis unsigned long stored in memory

but it needs to be an argument in the constructor right? like how they had the on and off time and pin for each object

>Flasher led1(12, 100, 400);
>Flasher led2(13, 350, 350);

>> No.1732355

>>1732332
No, previousMillis is always instantiated as 0 in the constructor function. The values that are given as arguments in the constructor are stored in member variables OnTime and OffTime, and they are only used in checking if currentMillis - previousMillis is greater than themselves, depending on the led state. previousMillis only gets updated when the amount of time required depending on led state has expired and update() gets called.

>> No.1732377

>>1725989
PCBShopper can compare pricing on most of the bigger stores.

>> No.1732406

>>1732355
ooh ok I get it now. thanks for the info. I might actually get the hang of OOP one of these days

though I could have sworn it was acting weird when I uploaded the code, not being a constant rate and dimming, must've been something else

>> No.1732483

I am making a QRNG with an arduino nano, and would like a more accurate clock to increase my bps, any good suggestions? As far as I can tell, the builtin clock isn't accurate past maybe 3 decimal places.

>> No.1732528

It's nearly fucking impossible to buy attiny85 and not get scammed on ali for some reason
>order 10 attiny85s from a store
>receive them
>plug them in
>find out they are all attiny12s, much cheaper and fucking useless retarded cousin of the attiny85
>it clearly says attiny85 on them so this was not a mistake this was straight out a scam
>order 10 more attiny85 from a different store
>they arrive
>plug them in covered in sweat
>thank god they are legit
>wait a minute
>there are only 5 of them but i paid for 10 and listing says 10 and of course it's impossible for me to prove that they only sent 5

god fucking damn it. i am getting scammed so much at this point the money a paid is almost 80% of what i would pay if i bought them locally

isn't that funny tho? it's still cheaper for me to keep ordering and getting scammed on ali than buying locally
damn jews

>> No.1732543

>>1732528
Use arrow, the shipping is cheap if I remember correctly

>> No.1732545

>>1732543
What is that?

>> No.1732626

>>1732528
Film the moment when you're opening the package. I've done this after I got scammed and this has helped in claims

>> No.1732632

>>1732528
You could probably get partial refund if you can show they are the wrong type of chip, and you might also get away with a package not arrived-claim here and there. Ebay and PayPal are more strict against the sellers, too, so in the future try ordering from there, you are more likely to win cases.

>> No.1732760
File: 31 KB, 480x960, 03c0a37d7cba833cb3eba0d04758c6dcnichijounerdy.jpg [View same] [iqdb] [saucenao] [google]
1732760

>>1726133
Wheatstone Bridge?
Really high freq. RC filter?
Different, more accurate pots?
Differential opamp setting to compensate for pots non-linearity?
That's as far as I know from my measurement class, sorry man.

>> No.1732785
File: 237 KB, 600x780, 1378262708264.png [View same] [iqdb] [saucenao] [google]
1732785

Is there any resources on using MC with from 'scratch'? Not Arduino or other full pre-packaged thing, I mean, a MC with an oscillator and all that shit.
Shit I can't express myself, but I just want to be able to make an MC in a breadboard

>> No.1732803

>>1726917
Do cats need “feeders” ... I know dogs will eat until they barf, eat what they barfed up, and then look for more, but I don’t think cats were like that.

>> No.1732812

>>1728006
No, lots of small appliances use 8 bit MCUs. Even toothbrushes.

In this subreddit, however, we tell people they need a raspberry pi to flash a LED.

>> No.1732816

>>1732785
Yeah, get a DIP or a QFP adapter and plug it in. The hard part with the “bare” mcu is programming it.

Check out the ti msp430 launchpad. Program it on there, remove dip, plug into breadboard (with your flash led program) and flash that led.

>> No.1732822

>>1732528
Just be happy you got something. I get about 50% of my stuff.

Nowadays I only order one <$1 thing at a time. That way I’m only out $1.

Tighten code to work on the attiny12s :)

>> No.1734122

Hey anons, I'm totally lost and don't know where to start. I'm wanting to read data from this accelerometer (ASM330LHH) on the right with SPI into this Nucleo board on the left. I think I already asked /ohm/ how to hook up the power without frying it, but I have no idea how to start with actually using it. Can anyone point me in the right direction?

>> No.1734130
File: 2.75 MB, 3264x2448, 20191213_225244.jpg [View same] [iqdb] [saucenao] [google]
1734130

>>1734122
Forgot to post the picture, if it even matters.

>> No.1734216

>>1723793
Zephyr os

>> No.1734236 [DELETED] 
File: 18 KB, 620x500, mv209d.png [View same] [iqdb] [saucenao] [google]
1734236

>MV209's are no longer officially sold
>Ebay has them for $2 apiece
What is the go-to solution for varicaps these days? Just pick any random part that's cheap and works?

>> No.1734295
File: 37 KB, 604x406, 6012ba60df5b36dd69dee2707e1027dd.jpg [View same] [iqdb] [saucenao] [google]
1734295

I want to make something similar to this, maybe also get it to sound when I put my car in reverse,

Where do I start family?

I only just started and have The Arduino Starter Kit

https://importbible.com/shop/melody-boxes/ressha-melody-box

>> No.1734994
File: 37 KB, 1038x369, file.png [View same] [iqdb] [saucenao] [google]
1734994

The attiny85 datasheet says it has two internal voltage references 1.1V and 2.56V, but by default the reference is 5V i think. So how do i set the attiny85 to use the 2.56 reference for my analogRead() stuff?

>> No.1734996
File: 121 KB, 960x660, Screenshot_2019-12-15_09-39-09.png [View same] [iqdb] [saucenao] [google]
1734996

>>1734994

>> No.1734998

>>1734295
This is easy to do with a piezzo buzzer, all cars have a wire in the wirebox usually behind the car stereo, where one wire has always power and other only when the car is started so just connect the arduino to that wire, and use the setup() function to play something on the piezzo.
If you want it to play actual music and shit then you will probably need an audio shield, or somerthing like raspberry pi which has a normal audio jack output which you can plug into your car aux to play sound through normal speakers

>> No.1734999

>>1734996
I'm not very good with that binary shit, is this the correct way to do what i want?
setup()
{
ADMUX = 1 << 10010000
{

>> No.1735003

>>1734999

You had it right (assuming no external bypass cap) before that left shift which screwed it up. And I'd read the register and then "OR" it with 0b1001000 and hope that when the Arduino geeks set the mux they don't fuck with the other bits.

>> No.1735005

>>1735003
Okay,i changed it to

ADMUX |= 0b1001000

I'm not using any libraries so hopefully nothing else in the IDE will want to fuck with the reference settings

>> No.1735012

>>1735003
One more thing, if i set the ADC refernce to 2.56V the pins are still 5V tolerant right? it's just that anything over 2.56V on the pin will show as 1024 reading

>> No.1735013
File: 33 KB, 927x133, Screenshot_2019-12-15_10-28-24.png [View same] [iqdb] [saucenao] [google]
1735013

>>1735012

I think that is correct.

>> No.1735079

You guys ever sit there looking at your collection of arduino's/etc and wonder how the hell you're going to find projects for all of them?

>> No.1735136

>>1734122
The datasheet should tell you everything you need to know, including what data to send to the accelerometer to get it working. Also make sure you've set up SPI correctly, use CubeMX if you have to.

>> No.1735358

not mcu's but do any of you guys also do FPGA's?

>> No.1735395

>>1735079
I had to put my box of arduinos and arduino sensors into a closet to escape the constant buyers remorse

>> No.1735555

>>1735358
whachu wanna know senpai?

>> No.1735772

>>1735555
just curious if there are people active in FPGA development around here. Currently messing around with an altera de2 and the ethernet port trying to capture some packets just for fun I guess. You do anything cool?

>> No.1735935

>>1735772
not that anon but I'm planning on making a signal generator once these damn finals are out of the way
gonna use a CORDIC core, haven't planned out the DAC part of it yet

>> No.1736113

>>1731462
Is it a warhammer40k building?

>> No.1736265

No matter what I do, I cannot get accurate (+/- 5mV) voltages out of the arduino PWM. Am I retarded? Is the breadboard sucking up energy from the narrow cycles? Would I have better luck bit-banging than using the stock PWM? Fuck me.

>> No.1736467

>>1736265
are you using the 12-bit timer? How are you creating a PWM signal?

>> No.1736517

>>1736467
I'm writing
>analogWrite(Outputpin, dutyCycle);
Where the output pin is pin 5. I'm using "TCCR0B=B00000001;" in setup to increase up to 7.8kHz or 62kHz, the output's nonlinear in all cases. Running the output through a 4-pole sallen key low pass filter @800Hz cutoff, so there's <5mV ripple.
Each step has a value of 4, so duty cycle goes from 132 to 180 to 228 etc. From what I'm measuring though, the output is equivalent to 132-180-224, the last one appears like it's 4 lower (or about 80 mV).
It's an arduino nano -> breadboard -> protoboard with the filters, built on a TL072 w/0-9V supply.

>> No.1736925

>>1735772
James is that you?

>> No.1737138

>>1732528
If you dont want to get chinked buy from authorized distributors only. DIgikey, Mouser, Arrow are a few.

>> No.1737217
File: 150 KB, 1280x853, wsa.jpg [View same] [iqdb] [saucenao] [google]
1737217

https://hackaday.io/project/2040-web-security-everywhere
I really want this but it seems hard to setup. Is there something easier?

>> No.1737229

>>1737217
you can already do this with the laptop or phone you're trying to connect to it. People seem to forget this is just a linux computer running a VPN/Tor which, guess what, so is a phone/laptop.

>> No.1737231

how does an esp8266 run a more robust http server than a pi0w?

>> No.1737278

>>1737138
Yes, the only caveeat is like $10 shipping to eu and each unit costs only over 2 times more than from chinks

>> No.1737280

>>1737217
>In a world where digital privacy doesn't exist anymore, where journalists couldn't securely do their work, where companies are spyed upon by various entities, and where Human Rights are cynical
>spyed
I read literally one sentence about it and got turned off.
You want to trust some retard who can't even into grammar properly with keeping your cp safe?

>> No.1737392

>>1737278
You could also check out lcsc.com for parts. They're run by JLCPCB and so far the parts I've ordered from there have been within spec.

>> No.1737393 [DELETED] 

>>1717706
Hello OP. Over the last 10 years I purchased various Arduinos, shields, a few Raspberry PI's, and small misc electronics. They are currently collecting dust in the garage and I'd rather pass them on to someone that can use them instead of throwing them out in a few years. If you would like, I can ship them to you free of charge (if you are in the US, they will be shipped from NJ). If interested, send me an email to 641@pm.me. Include a random 10 digit number in the email, and after I receive the email, post the number here. That way I know the email is from OP.

>> No.1737407

>>1737393
ANd how pray tell will you do that? This board has no IDs and the op has no trip.
Instead of doing charity to buy your way into haven, work on some interesting projects.

>> No.1737461

>>1737393
>Hello OP. Over the last 10 years I purchased various Arduinos, shields, a few Raspberry PI's, and small misc electronics. They are currently collecting dust in the garage
hello /g/

>> No.1737557

>>1720028
WDC's MyMENSCH is one (the rev A specifically, though I don't think the B and C are available yet; B is going to be 65C816-based, while B is going to be 65C165-based).

Seriously thinking about picking up a rev A. They're several times more expensive than an arduino, but I fucking hate everything about AVR.

What I really want though is to get a bunch of W65C134S chips and put them on boards. From the datasheet:
>The WDC W65C134S microcontroller is a complete fully static 8-bit computer fabricated on a single chip using a low power CMOS process. The W65C134S has been developed with life support features recommended by medical electronics firms. The Serial Interface Bus (SIB) was designed for an in-the-human-body token passing local area network (LAN) for eight (8) networked controllers.

I am fully erect.

>> No.1737597

>>1737231
esp's will serve a few kilobytes, rasp's can serve lots of gigabytes plus every web technology out there.

>>1732528
aliscamxpress almost always chinks you out
friend of mine hurr'durr'ed so hard when his counterfeit Arduinos all died in a matter of weeks

my $400 PC bought from Aliexpress three years ago is still OK, tho

>>1732816
I bought the original '430 launchpad and left it there blinking the LEDs because any project would require energy management, a clock, level shifting, and a way to debug (serial emulation is a mess).
arduinos are plug&play.

>>1731127
it's a mess.
btw the mbed thing is cleaner.

>>1730730
RISC-V will be lacking for many years to come. It's not a Core i9 replacement.

>>1730638
man, we abandoned the 8051 early 1990's because it was remarkably vintage at the time.
Z80 is still in use tho, we've got industrial machines running literally 25+ years 24/365, the only two repairs ever appened were the power supply.

>> No.1737609

>>1737597
>Z80
It's an okay arch. It's no 6502 though.

>> No.1737807

>>1737597
>we abandoned the 8051 early 1990's

you're completely backwards on this. the Z80 is dead, whereas the 8051 is still a going concern. you can buy updated chips today working at many Mhz, and with all new accouterments like USB on-chip.
https://www.embedded.com/the-8051-mcu-arms-nemesis-on-the-internet-of-things/

>> No.1737868
File: 32 KB, 480x480, 1576864721521.jpg [View same] [iqdb] [saucenao] [google]
1737868

>>1737807
>the Z80 is dead

>> No.1737880

>>1737807
TI's calculator engineers would like to have a word with you

>> No.1738129

How much overhead does the ESP32 have when running arduino stuff?

>> No.1738147

>>1722692
Is that an USB or PS2 keyboard

>> No.1738371

>>1732528
LCSC if you want more reliable chinks

>> No.1738372
File: 43 KB, 870x443, file.png [View same] [iqdb] [saucenao] [google]
1738372

>>1738371
>LCSC
Their shipping is $5 at minimum, where on ali it's free and the shit i want is out of stock anyway, not to mention the 30% higher part prices compared to ali chinks

>> No.1738457

>imagine actually using AVR architecture CPUs

>> No.1738657

>>1735136
>Also make sure you've set up SPI correctly
This is the part I don't understand. I think I've got it wired correctly, but I don't know how to even begin with the code side of it. What really gets me is all the code examples for SPI say "replace the contents of main.c with this" but my main.c has a lot of pre-populated stuff in it, and it has specific areas inside comment blocks where you can add code. When you build it for the board, everything outside of those comment blocks gets reset to the pre-populated code.

>> No.1738688

>>1729785
thats cool. havent done any HID stuff with MCU yet. any infos on getting the digispark recognized as a volume knob?

>> No.1738992
File: 59 KB, 432x768, ve8jupuak4541.jpg [View same] [iqdb] [saucenao] [google]
1738992

My arduino clones stopped working with the arduino IDE. Every time I try I
to upload I get the "not in sync" error.
I tried reinstalling Arduino and changing usb cables to no avail, I even tried reinstalling the CH340 drivers but they didn't work either.

How do I fix this?

>> No.1738998

>>1738992
Maybe they bricked the clones. We call that "pulling an ftdi"

>> No.1739003

fuck, im having troubles with an LCD 16*2 scren. just wired everything but cant make the contrast work cause I soldered a 1k potentiometer, what should I do and what is the recomended resistance for the contrast?

>> No.1739008

>>1738998
uh...no. Arduino does't manage the drivers.

>>1738992
Is your code still running? Try figuring out how to burn your bootloader. You can also bypass the USB chip completely. Can you open a serial port through a terminal? Can you see it trying to load the drivers?

>> No.1739040

>>1738992
Have you tried a reboot? I get that error sometimes and rebooting seems to do the trick.

>> No.1739071
File: 56 KB, 800x457, display-lcd-2x16-hd44780-backlight-azul-arduino-pic-etc-D_NQ_NP_13649-MLA3316620555_102012-F.jpg [View same] [iqdb] [saucenao] [google]
1739071

>>1739003
You probably connected it wrong. Yo should use the potentiometer as a voltage divider, with the center connected to the contrast pin and the extremes to vcc and gnd. Then you can spin it until you get the contrast you want, take the potentiometer out, measure it with a multimeter and substitute it with two resistors similar to the two readings you got from the extremes to the swiper pin.

>>1738998
>>1739008
>>1739040
Sorry guys, I'm retarted, I had to select "old bootloader" from the options menu. Now it uploads just fine. I have an USBasp, so I'll see if I can burn the new one anyway.

>> No.1739097

Is it possible to identify shields by code?
I wanted to make a tricorder esque device and have swappable shields or sensors
Or would I be better off just putting the brains in each sensor and have the handheld unit just be the display parts?

>> No.1739113

>>1739097
Yeah, entirely possible. The simplest way would be to put a different voltage divider in each module and read the analog voltage to identify it. Other way is I2C or something similar, but that requires uCs on both sides.

>> No.1739210

>>1720058
Socket shmocket. Solder some small wires to the contacts on the side of the package and shove that thing on a euro card or perf board. Or make some dead bug sculpture circuit.

>> No.1739211

>>1721548
There are free cores available for a lot of old MCU's and related logic. opencores.org is one place to start.

>> No.1739212

>>1723089
arduino is fine and the newer platforms often have no 5V tolerant pins. if you wanna level shift stuff go stm32

>> No.1739214

>>1725893
realtalk life advice time: if you wanna do bare metal bits and bytes stuff just jump in and do it, it's still a "black art" to most comp sci / web dev types.. make some cool shit and show it off..

>> No.1739216

>>1728006
no one needs 8 bits for a toaster! 4-bit TMS1000 with masked rom for the win... as long as you need 1M of them and anyone still has a fab....

>> No.1739217

>>1732281
>>1732303
>>1732305
Check out johnnyb's "Eventually" library for arduino, it is intended to be a complete solution for event driven projects. I found it after I started writing my own task-specific classes for a project I'm doing, so I haven't screwed with it yet... caveat emptor and all that.

>> No.1739221

>>1728006
8-bit is alive and well, especially in applications where safety and reliability are more important than speed.

>> No.1739222

>>1723089
Arduino is fine for experimenting and prototyping but if you're planning on doing production or anything for mining/security/aerospace you'll probably want to go with something that isn't AVR-based.

>> No.1739227

>>1732812
Good chuckle

>> No.1739400

Would an ODROID-N2 be good enough to play back 4k h265/h264 rips? People keep suggesting nvidia shield but that feels way to botnet for me.

>> No.1739741

If I am using the spi pins on the microcontroller, can I still use the digital pins that correspond to them for other purposes.
So on an arduino can I use pins 11,12,13 for pullups if I am using the spi pins for communication

>> No.1739912

If PWM has a duty cycle range from 0-256: is it unreasonable to assume that an increase of 4 will always give the same 78mV increase?
Like, is the voltage increase from a duty cycle of 100->104 the same as 240->244?

>> No.1740003

>>1739912

depends what you mean by 78mV. it's not something you can measure unless you have an ideal filter on hand. so, it's a mathematical abstraction: an average of a bouncy wave. and as that, you can expect a linear relationship with duty cycle.

>> No.1740016

>>1739912
Seems more of an /ohm/ question.

>> No.1740091 [DELETED] 

>>1717706
anyone here have experience working with MIDI? how hard is it? thinking of making a small bluetooth MIDI controller with an RP3 or something. The controller should be able to send MIDI data to a PC or an iOS device. I'm a CS student with absolutely no hardware experience

>> No.1740094

anyone here have experience working with MIDI? how hard is it? thinking of making a small bluetooth MIDI controller with an RP3 or something. The controller should be able to send MIDI data to a PC or an iOS device. I'm a CS student with zero hardware experience

>> No.1740122
File: 88 KB, 749x889, 1564934809254.jpg [View same] [iqdb] [saucenao] [google]
1740122

>>1719672
Lol this i why i started coding.

>> No.1740180

>>1740094

google ''youtube coding for midi''

>> No.1740186

>>1740180
yeah obviously, but that doesn't answer the question: how hard is it? you could search for neural networks or differential equations on youtube and the guy in the video will PROMISE it's incredibly easy. I'm not very smart.

>> No.1740381

Why do people shit on arduino again? Are they actually unreliable or is that a meme?

>> No.1740383
File: 1.10 MB, 2080x1560, IMG_20191226_142416698_resize_71.jpg [View same] [iqdb] [saucenao] [google]
1740383

Just pulled this display out of a stereo, is it easy to figure out how these things are controlled and get them connected to an Arduino or will it be using some proprietary / non-standard interface that will be impossible to figure out?
I'm a good programmer but a semi-noob at electronics.

>> No.1740384
File: 1.11 MB, 2080x1560, IMG_20191226_142503045_resize_74.jpg [View same] [iqdb] [saucenao] [google]
1740384

>>1740383
Back of the board

>> No.1740387

>>1740381
there's nothing wrong with them unless you need to do anything time deterministic or you need to use peripherals to do anything clever. programming microcontrollers is frankly annoying as fuck so the arduino software lowers the barrier to entry in a useful way. i just breadboarded an arduino and accelerometer to sound a buzzer when my piece of shit dryer is done running. there's no way i would have got off my ass to prototype that if i had to use a PIC, though the "production" board i ordered will use a 16f15313.

speaking of pics, does anyone know any projects that have used the spi/mssp peripheral to make a continuous data stream for something like PDM?

>> No.1740408

>>1740387
>speaking of pics, does anyone know any projects that have used the spi/mssp peripheral to make a continuous data stream for something like PDM?
nevermind i figured out how to do easier it with the uart peripheral. i didn't realize that had a synchronous mode that doesn't force stop and start bits on you.

>> No.1740468

>>1740381

coz it's the Lego of electronics. people who know nothing are able to accomplish goals, except they just follow the instructions, and never learn how things actually work.

>> No.1740470

>>1740383

google ''driving an VFD display''
they tend to be custom made so you have to apply voltages and see which pin lights what, and to make a list. unlike LEDS, they require a filament or 'heater' connection (often it's something like 15Vac) before any segments will light.

>> No.1740476

>>1740383
You figure out what kind of chip is on the board, look up its data sheet, and talk to that. Unfortunately sometimes (like this) the chip is under the display, that makes it harder to figure out what you've got.

>> No.1740504
File: 649 KB, 800x800, file.png [View same] [iqdb] [saucenao] [google]
1740504

>install FTDI VCP drivers
>reboot
>ESP32 still doesn't show up under /dev
fuck. what do?

>> No.1740527
File: 72 KB, 680x375, NorfFC14.jpg [View same] [iqdb] [saucenao] [google]
1740527

>>1738992
Let my prowess and wisdom descend upon you.

If you get timeout, it means Arduino IDE is sending something on the configured serial port and not receiving replies. This means:

- the ttyUSB mapping changed (say, ttyUSB1 became ttyUSB4, because the usb hub just rebooted itself because reasons) -- go for ls -al /dev/serial/by-id/ to see the currently assigned ttyUSB* ports

- you forgot that Prolific driver may work improperly if two or more prolific pl2303 are connected

- you forgot that Fake FTDI™ are made of Chinesium poop, but that only should happen with Chinkadapters and Chinkduinos

- you just rebooted and the usb hardware enumerated the ports in a different order (it rarely happens, but when it happens you're doomed). Seriously, whenever possible use in your config files /dev/serial/by-id/... values instead of the /dev/ttyUSB... ones

- finally, some other software may be accessing the same ports (that is, fagocitating the bytes the IDE sent there); NetworkManager was usually the major culprit because it tried to identify a serial modem for every ttyUSB out there, but that shouldn't be anymore the case, (Ubuntu 18.04 sanitized gpsd, networkmanager and others)

- did you fiddle with the baudrate when toying out with the Esp32's?

>> No.1740532

>>1740470
>>1740476
Thanks bros

>> No.1740534
File: 232 KB, 800x566, circuit_playground_Adafruit_Circuit_Playground_Express_Pinou.png [View same] [iqdb] [saucenao] [google]
1740534

Anyone have any experience with interrupts on the Circuit Playground Express? I've got some code intended for Arduino Uno that I modified for the CPX to dick with IR signals, basically it attaches an interrupt to a pin and times the highs and lows of the decoded output of an IR receiver. I changed the interrupt from digital pin 2 to digital pin 26 (those Cortex M0's have a lot I/O). It acts like it is receiving data when it is not. Roughly the same pattern of data, whether I expose it to an IR signal or not. I think the interrupt is being triggered somehow other than the actual hardware, something with timers or clocks that I don't understand.... any ideas?

>> No.1740536

>>1740527
>fagocitating
This is my new favorite word.

>> No.1740587

>>1740383
>>1740384
>>1740470
>something like 15VAC
I think VFDs typically run much higher voltages than that.

Honestly it's almost never worth using VFD pulls. The engineering to make them work is significant, and by the time you're pulling them they've usually degraded somewhat.

Like I'd seriously think it more practical to reuse a CRT you pulled. At least there are some oddball applications where it's nice to have a real CRT. I can't think of any one-off applications where a VFD would be preferable to a segmented LED setup (or LCD if you're using it in a well-lit environment).

>> No.1740595

>>1740587
>I can't think of any one-off applications

it's got the retro cool of nixies but simpler and without deadly voltages.

>> No.1740607

>>1740595
I remember when red-on-black seven-segment LED displays were retro.

>> No.1740615

>>1740587
A VFD usually uses lower filament / heater voltages (probably around 1.5 or 3) and a moderate anode / grid voltage (usually 27V or so).

>> No.1740662

I was looking at the new stm32duino wiki stuff and I see that the upload method has been changed. However with the new stuff, I dont see a way of overclocking the stm32f1. Is that no longer supported?

>> No.1740832

>>1740122
Der Führer always inspires true aryan creativity.

>> No.1740864
File: 135 KB, 494x434, 1537370741547.jpg [View same] [iqdb] [saucenao] [google]
1740864

>bought some pro micros
>download arduino ide
>realize that i only know python
what do i have to do to transfer python scripts onto arduinos?

>> No.1740870

Anyone use one of the low power battery wireless sensor projects? I'm looking for something for industrial sensors.

Thought about making my own, but rather start with a vetted project.

Posted here:
>>1740773
tl;dr: I looked into Ruuvi, Moteino, Waspmote, and Anarduino. Moteino was the best option after an hour. I didn't see much else.

>> No.1740874

new thread >>>/diy/mcg/

>> No.1740883

>>1740874
Uh.