|
I used a little Wi-Fi module and an arduino to muck around with web server stuff. Hoping to get it to the point where I can log in to a web page and change stuff on the arduino. It's much easier than I expected, all these pre-programmed AT command gadgets around are fantastic. A while back I used another arduino and a relay to make a time and temperature based switch for my room heater. I hope to merge the two projects so that I can configure it using a browser.
|
# ¿ Jan 10, 2017 10:19 |
|
|
# ¿ May 14, 2024 01:41 |
|
awesomeolion posted:New question for y'all. Now that I've got both motors running on batteries I'm trying to control them using an IR sensor. If I have "irrecv.enableIRIn();" in setup then only one motor runs. If I comment it out both motors run. I know that the IR receiver can block but why would it stop only one motor from working? I may have found your issue https://forum.arduino.cc/index.php?topic=93994.0 Your arduino might have run out of hardware timers. Apparently that ir library you're using uses one, and analogWrite uses one too.
|
# ¿ Jan 15, 2017 00:41 |
|
cakesmith handyman posted:I bought one of those Elegoo starter kits and apart from a couple of slightly bent pins (yes I just grabbed some pliers) mechanically it's been fine, however the tutorials & the code & the accompanying schematics and drawings don't always match, which is frustrating when you're trying to learn something & you have to find where they sent you wrong. There are special tools for that, but they're not always perfect. A small Flathead screwdriver and care is usually just as good.
|
# ¿ Jan 15, 2017 22:32 |
|
I had an issue last night with an arduino clone board: the Vin pin wasn't actually connected to anything. I'm going to have to be more careful about which knock off clones I buy from eBay in future. This one didn't have a test LED either which you really miss when it's gone.
|
# ¿ Jan 16, 2017 22:17 |
|
Jamsta posted:Talking of u8glib, u8g2 is out now: oooooh cool
|
# ¿ Jan 19, 2017 09:21 |
|
It's really difficult to get good at soldering without somebody standing over your shoulder going "No you idiot, you have to do THIS". It's really hard to learn and teach though, because it's just a thing you can suddenly do well, and it's really difficult to articulate what you're doing differently. It's a 'knack'.
|
# ¿ Feb 15, 2017 07:55 |
|
Hadlock posted:I'm seeing these USB-C noise cancelling headphones and the electronics look itty bitty, their solution probably has some fancy custom DSP, but it can't be that hard to read a waveform, then inject the inverse waveform into the audio stream? I don't get how these guys are getting $200 for what should be pretty simple technology. If you find something please report back. There is a lot of bullshit pricing in audio tech, so you might be on to something.
|
# ¿ Mar 3, 2017 08:05 |
|
bad posts ahead!!! posted:I have, but it doesn't seem like I can learn to write from scratch from this Steal code from tutorials and slowly try and work out what each line does and why. Learning C may be more helpful than C++ depending on your educational background and how your brain works.
|
# ¿ Mar 4, 2017 12:55 |
|
PlatformIO is nice of you start writing stuff for arduino longer than a few pages. I used it for a work project and highly recommend it. The Arduino IDE is usually good enough but it's missing a few quality of life features that you get with serious ides
|
# ¿ May 2, 2017 01:37 |
|
If you're an electronics, servo motors are your best bet. They're cheap and way easier than the other options. You can get servo motors that are "continous rotation" as well as the limited angle ones, but the continuous rotation motors are controlled with a speed rather than an angle, do you'd have to work out the timing. As for mechanisms, you could use a rack and pinion or a crank, the best approach depends on the geometry you're working with, how far you need it to extend and how fast.
|
# ¿ Jul 7, 2017 03:26 |
|
Does anyone have a nice way of making 0.1" pin connections more permanent? Obviously I can desolder the headers but that's a bit of a pain, and if there's a clever way of doing it I'm all ears.
|
# ¿ Jul 7, 2017 05:46 |
|
Sagebrush posted:Given that this is the Arduino thread, I assume you mean the 0.1" female header blocks on a regular Arduino? The board I'm using (Node MCU) actually has male header blocks (which came pre-soldered, gee thanks), though that is a really good trick! I guess I could buy female blocks and do the same thing in reverse. Hot gluing jumper leads should work nicely Splode fucked around with this message at 07:02 on Jul 7, 2017 |
# ¿ Jul 7, 2017 06:58 |
|
I was going to recommend something from adafruit. Screens are kind of hard to use, but code libraries are available and with a library, it's something that takes time and fiddling rather than skill. If you can put an "a" on the screen somewhere then it's only a matter of time before you can put whatever you like on the screen.
|
# ¿ Jul 10, 2017 06:12 |
|
Also edit out your Wi-Fi password
|
# ¿ Sep 25, 2017 08:31 |
|
Post pictures of the physical set up! You've made me want to try using IFTTT with an esp8266 now
|
# ¿ Sep 25, 2017 22:06 |
|
Every parrallel set up I've seen for a display is different to every other one unless they're based on the same controller chip (is it visible?). The i2c adaptor won't be able to handle anything other than the display controller ic it was designed to convert. You might luck out though, there are a few very popular controllers out there
|
# ¿ Oct 16, 2017 21:54 |
|
Sagebrush posted:I think the chances of a 16x2 character display using the same controller as a QVGA (etc) TFT are infinitesimally small. Yeah I think I skimread the post. I shouldn't post in here at midnight. thegasman2000 posted:How complicated is it to get 2 micro controllers to exchange data over Bluetooth? I am thinking of the esp32 with built in Bluetooth and wifi with one unit being the main and the other controlling a couple of leds and sending their state back to the main? Depends. You can buy a bluetooth module, hook it up to your Arduino's UART, and have serial comms with a laptop instantly, with just the regular serial code as it functions as a bluetooth serial port. Setting up one of the bluetooth modules to be a host is marginally more complex (in that it won't be set up out of the box) but still like, an hour's work max. HC05 bluetooth module is what you want
|
# ¿ Oct 18, 2017 11:01 |
|
That is a mess. I'm phone posting so I can't get the sketch I based my code around for you, but check out the ESP8266WebServer library and it's example, I used it and it's a lot less messy.
Splode fucked around with this message at 20:41 on Oct 26, 2017 |
# ¿ Oct 26, 2017 20:33 |
|
There's a nice way to do that, I had the user set the temperature that way, hang on... Fake edit: code:
This requires you to set up a form on your html page code:
My web page was set up in the code as a bun of strings that I could gently caress with depending on what the user did
|
# ¿ Oct 26, 2017 20:48 |
|
thegasman2000 posted:'class WiFiServer' has no member named 'hasArg' Are you using this library? https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WebServer Use it, check out the examples
|
# ¿ Oct 27, 2017 07:45 |
|
I often have a second arduino that I use as a development device for stuff like that (where I need to test higher level logic or comms). It's always a good idea to just have piles of arduino compatible microcontroller boards lying around.
|
# ¿ Nov 4, 2017 02:37 |
|
If it's any consolation, nobody other than you will ever notice
|
# ¿ Nov 7, 2017 21:57 |
|
I'm working on a project that will pull time from NTP servers, but I'm going to run into an issue with daylight savings (Australian Eastern Standard Time). I've got some code already that I found online and used in a few previous projects that pings the ntp server pool (time.nist.gov), pulls the NTP time (seconds since Jan 1st, 1900), converts it to unix time, and then extracts the current hour and minute (which is all I needed for time control until now). However, Australian Daylight Savings are, like most daylight saving systems, dumb and complicated for no reason: Daylight Saving Time begins at 2am on the first Sunday in October, when clocks are put forward one hour. It ends at 2am (which is 3am Daylight Saving Time) on the first Sunday in April, when clocks are put back one hour. Is there an easier way to pull the current time from the internet somewhere for a specific time zone, or am I going to have to actually program the above in to my device?
|
# ¿ Dec 14, 2017 10:55 |
|
Collateral Damage posted:Take ten minutes to watch this aaaaaaaAAAAAAAAAAAAAAAAAA Why do we do this to ourselves. That library looks great, thanks. Splode fucked around with this message at 11:32 on Dec 14, 2017 |
# ¿ Dec 14, 2017 11:19 |
|
That library worked a treat, thanks guys. I'll post project details later (after christmas)
|
# ¿ Dec 20, 2017 12:41 |
|
babyeatingpsychopath posted:Posting back-to-back, but that was last month. Nice work! Take a photo, I'm always interested in how people approach one-off enclosures (as it's the part where all my projects turn to poo poo)
|
# ¿ Jan 13, 2018 06:33 |
|
That is a lot of Arduinos! May I recommend you replace the breadboards with veroboard or some other more permanent solution? Looks great though.
|
# ¿ Jan 21, 2018 21:00 |
|
Sockser posted:Those are adafruit permaprotos, regular perfboard laid out like a standard breadboard. They’re great and pretty much all I ever use. Ahh fair enough, I've never seen them before
|
# ¿ Jan 21, 2018 22:04 |
|
I couldn't get either the mouse or keyboard libraries to work when I used platform io to compile, but they worked fine with the Arduino IDE. I skimread somewhere that there was some issue fixed in 1.6.6 of the arduino IDE that fixed something related to this?
|
# ¿ Jan 29, 2018 12:08 |
|
taqueso posted:Does anyone know of an arduino or teensy or similar carrier board that has some isolated IO? Not off the top of my head, (I checked and the ruggeduino isn't isolated), but you'll probably have more luck finding an external module or shield.
|
# ¿ Feb 9, 2018 11:36 |
|
I used the esp8266 to pull time from time servers rather than use an RTC, but that might not be viable for whatever you're doing. I haven't seen any boards with both an esp8266 and rtc though. you'll probably need to design your own or live with seperate modules.
|
# ¿ Mar 22, 2018 14:52 |
|
It's worth noting once you are messing with registers and peripherals you may have more luck asking questions in the embedded programming microthread or the electronics thread. Feel free to ask here too though. Sorry about no links, phone posting While I'm here, I use a lot of Arduino Dues at work because it's not my money lol. That said, they're physically huge. Does anyone have any recommendations for Arduino compatible boards with shitloads of IO in a smaller package? A nice fast arm processor is nice too but pretty unnecessary. Splode fucked around with this message at 21:46 on Mar 27, 2018 |
# ¿ Mar 27, 2018 21:43 |
|
Sagebrush posted:The Teensy 3.2 or 3.6 are good options. Perfect thanks, I'd forgotten about teensy
|
# ¿ Mar 28, 2018 21:53 |
|
evil_bunnY posted:Then cludge something with mosfets! If you have a 5V rail, this is probably the easiest solution.
|
# ¿ Apr 3, 2018 12:03 |
|
Can you not use the arduino libraries with the ESP32? I've done arduino projects with an ESP8266 and it was painless.
|
# ¿ Apr 21, 2018 23:03 |
|
It's not that big a downside honestly. It costs more and requires more space but it's easier than sorting out interrupts or writing a sequencer or something. I would personally use UART to have the two devices communicate, but i2c and SPI will also work fine. My approach would be to set up the arduino as a slave, so your ESP can send it a command and recieve back the relevant data from whichever sensor it asked for. It wouldn't be very difficult, and it'll be really easy to debug them seperately.
|
# ¿ Apr 21, 2018 23:27 |
|
I've used LEDs with forward voltage drops as high as 3.4V, you may need to reconsider your power system. As for the turning off problem, measure the pin assigned to reset with a multimeter (or better yet an oscilloscope if you have one) and see what it's doing. That should give you an idea about how to fix it.
|
# ¿ Apr 22, 2018 16:19 |
|
Surely you can just drive them with mosfets? Optoisolators for 5v relays seems excessive.
|
# ¿ Jul 1, 2018 02:16 |
|
You can absolutely manually set registers in the Arduino IDE, I do it all the time when I want to mess with timers and interrupts. I'm planning to jump from the arduino ide to vscode + the arduino package. I've tried platformIO but it's flaky as hell, so i'm hoping this is better
|
# ¿ Jul 18, 2018 23:14 |
|
|
# ¿ May 14, 2024 01:41 |
|
Yeah if you download the board package for ESP8266/ESP32/NodeMCU (it's all the same package) I bet it'll work. The board package comes with heaps of example sketches so it'll be reasonably easy to test.
|
# ¿ Aug 3, 2018 08:26 |