|
Aurium posted:1.) It depends on why it's broken. Some motor shields can't be stacked at all, which wouldn't be the due's fault. Libraries for the stack able ones might use Port manipulation commands that would need to be changed for the due. If you're decent at programming, you could probably fix or write your own library. Link what you're thinking of using if you want further opinions. 1. The sources I'm using to determine why shields in general can't be stacked on the Arduino DUE are http://www.mathworks.com/help/supportpkg/arduinoio/ug/cannot-stack-motor-shields.html - which states that shields cannot be stacked on the arduino https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino/faq - As of Arduino 1.5.6-r2 BETA, there is a bug in the Due Wire library that prevents multiple Motor Shields from working properly! I'm using a Polulu shield, the MC33926, but I'm still worried I'll find this bug. There seems to be no documentation of it anywhere but ont he Adafruit site. 2. What constitutes a high enough voltage?
|
# ? Jan 31, 2015 23:10 |
|
|
# ? May 28, 2024 12:18 |
|
Globofglob posted:1. The sources I'm using to determine why shields in general can't be stacked on the Arduino DUE are 1. I'm going to assume that you mean This shield. What I have to tell you will vary quite a bit between different ones. It will work with the Due, as this is not an addressed shield, it's basically a breakout board for a bare h-bridge. The inputs to that shield are nothing more than Direction per motor, and PWM per motor, and has you connect those inputs to any pin that you desire. All you have to do is solder it appropriately. But it does require 2 pins per motor. Just pick different pins for every shield, and you'd be fine. See the instructions for Remapping the Arduino Connections. As that shield would work with no problems (but some soldering), I am going to go into some more technical stuff. The other style of shield would have data in and data out lines and would via programming / dedicated chips pay attention only to what is talking to it, and ignore all other commands. That means that if you had a motor shield like this, you would only need 2 pins total for an arbitrary number of motors. The wire library (which is a library for the i2c protocol) is one of the ways that is used to talk to only what you want to talk to with only 2 wires. There's been a couple of releases since then and one says that it fixed some Due wire library issues. I couldn't tell you if it fixes these ones or not. The mathworks site has no information at all as to why, but I'm guessing they're referring to the same bug. Fixing this library would be a real pain, and is not something that I would recommend. There are some other schemes to reduce the number of pins needed, such as shift registers. One of the adafruit motor shields uses them. If the driving library for that style was broken on the Due, that wouldn't be so hard to fix yourself. The adafruit shield that Hadlock linked though IS i2c (the wire library), and thus would be broken on the due if this bug hasn't been fixed yet. 2. Probably any voltage that it will power up with off the jack. I'm not exactly sure for the Due. For the Uno/Mega it's ~7 volts. If a chip on the the board detects that much voltage on the jack it automatically switches over. So basically any power supply that is capable of running the Arduino from the jack turns off usb power. The reason why I'm not sure exactly for the Due is because 7 volts was chosen because the Uno/Mega run on 5 volts, and the regulator needs ~2v of overhead to work. As the Due runs on 3.3v internally, the jack could potentially detect as low as ~5.3v on it and shut down usb then, or they might have just left the original 7 volt detecting circuit alone. That said, as their design goal would be to shut down USB power if it's plugged in externally, I suspect that any thing that can run the Arduino though the jack would shut down USB power properly.
|
# ? Feb 1, 2015 00:03 |
|
This shield? As far as I can tell it's pwm controlled so it shouldn't be a problem (the Due library issue affects I2C devices), though you will probably have to poke around the library to reassign the pins or write your own code to run the motors as it isn't stackable straight out of the box. e:fb
|
# ? Feb 1, 2015 00:03 |
|
Aurium posted:1. I'm going to assume that you mean This shield. What I have to tell you will vary quite a bit between different ones. TheLastManStanding posted:This shield? As far as I can tell it's pwm controlled so it shouldn't be a problem (the Due library issue affects I2C devices), though you will probably have to poke around the library to reassign the pins or write your own code to run the motors as it isn't stackable straight out of the box. Thanks for the help guys; I'll go ahead with it then.
|
# ? Feb 1, 2015 17:53 |
|
Aurium posted:It won't complain, but you might have to have some fun with type casting to get your desired behavior. I do like to be excessively clever. But code readability is always a concern of mine. I solved the problem by adding a task.enabled bool to the struct, now I'll just handle timer=0 as a run anyhow command...just in case I ever pull off a sub-us scan time, which I doubt will ever happen. And it's good to know the clock resolution. Shouldn't affect what I'm doing at 4 us, but a good thing to know.
|
# ? Feb 2, 2015 01:19 |
|
Hey guys, whats a good starter kit for Arduino? I've never done any coding or electronics work but I'm interested in starting out. I found this one but it seems to be discontinued in some stores but not in others. Is it a good kit? http://store.arduino.cc/product/K000007
|
# ? Feb 2, 2015 19:54 |
|
Super Waffle posted:Hey guys, whats a good starter kit for Arduino? I've never done any coding or electronics work but I'm interested in starting out. I found this one but it seems to be discontinued in some stores but not in others. Is it a good kit? Buy a Nano + Solderless Breadboard from China Ebay for $5, then when you blow it up by accident you don't have to spend $20 replacing it Serious post: this looks neat: http://www.ebay.co.uk/itm/UK-UNO-R3...=item3ce8ce0e13
|
# ? Feb 2, 2015 20:48 |
|
UberVexer posted:You should feel honored now. High voltage programmers. This one, for example http://www.instructables.com/id/AVR-High-voltage-programming-Fuses-rescue/ Disclaimer: I have zero experience with that stuff. Concidentally, I'm planning to
|
# ? Feb 2, 2015 22:25 |
|
Jamsta posted:this looks neat: I wish I had bought one of those starting off. And yeah, a Arduino Nano knockoff with the CF340 chip for ~$3.50 USD shipped from China is a smoking deal, even if you have to wait two weeks for it to arrive. I have one that's hooked up to a GPS chip and acts as a network time server for my home LAN.
|
# ? Feb 3, 2015 07:43 |
|
Ok, so I've been making a circuit diagram of an Arduino DUE with two of these things as shields: https://www.pololu.com/docs/0J55/3.c I was wondering, since they're seem to use the same pins, would it be possible to drive 4 motors off of these, or would I have to reassign the pins of the second board, or use it as a motor driver rather than a shield? 2. Also, If they work as shields would they power each other, as they can power the arduino from the shield, or would I have to power both off of the same battery and get a Y-connector or something? 3. If I wanted to use voltage regulators, would I put them between the Battery and the shield, or the shield and the motor? I'm using a 7.4V battery and I plan to use step-up 12V Regulator to power a shield, which will power a motor and a 6V regulator, and the 6V reg goes to a micromotor. Battery->12V reg->Arduino Shield->Motor \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\->6V regulator->Micromotor Are there any major issues with this design? Globofglob fucked around with this message at 02:11 on Feb 8, 2015 |
# ? Feb 8, 2015 01:47 |
|
I tried a program over the weekend, I have an arduino Uno, Pin 9 - Servo connection (also connected to +5 and gnd on appropriate wires) Pin 1 - connected to +5 via Switch (do i need a resistor on this) Pin 2 - connected to +5 via switch (do i need a resistor on this) The premise, on reset - servo goes to pos 0 press pin1 (and hold) servo goes to pos 180 now it just waits until pin2 goes high then back to pos 0 The final setup will be for a locking box, when the lid closes it triggers pin 1 locking the box until the reed switches hidden somewhere on the case connected in serial are all correct (ie NSNSSNSNSS code) (pin2) to unlock the box so you can open it resetting the connection and the operation. Unfortunately it wasn't working at all on the breadboard. The servo would go to the locked position and stay there, Also even though i stop processing pin1 it will not process the pin2 until pin1 is low. can anyone see any problems with my sketch? code:
|
# ? Feb 10, 2015 07:55 |
|
Where is locker set to false outside of the setup?
|
# ? Feb 10, 2015 08:00 |
|
Dynamite Dog posted:Where is locker set to false outside of the setup? its not supposed to be, after a reset its set to open, and locker = false, so its monitoring pin1 waiting for the trigger, Then when triggered it never goes back into the false state until a reset(ie press the reset button or repower)
|
# ? Feb 10, 2015 08:02 |
|
Well the code looks like it should work. If your servo works with a basic sweep program I'd look at the wiring for the switches, can you post a sketch or something?
|
# ? Feb 10, 2015 08:14 |
|
Dynamite Dog posted:Well the code looks like it should work. If your servo works with a basic sweep program I'd look at the wiring for the switches, can you post a sketch or something? Not at the moment i am at work but it was using a breadboard. and i checked it was working with a meter.
|
# ? Feb 10, 2015 08:21 |
|
Never use delay. It's a trap that always gets used wrong and either screws things up or slows things down. Use a timed loop.code:
|
# ? Feb 10, 2015 08:31 |
|
Can someone write me a very simple millis example or pseudo code of sweeping two servos at different rates?
|
# ? Feb 10, 2015 08:36 |
|
There are libraries for this sort of thing which use timer interrupts, which would be preferable if you have a bunch of servos. If you want to code it out the following can be expanded to however many you need.code:
|
# ? Feb 10, 2015 09:56 |
|
I'm currently struggling with trying to get a Wiznet 820io Ethernet module to work with an Arduino Micro. I'm using the ICSP header for my SPI connections. Part of the job is that you have to alter the standard library to support the w5200 chip, according to these directions: https://github.com/Wiznet/W5200_Arduino_Ethernet_Lib I've also tried this library, which appears to be fairly similar: http://www.seeedstudio.com/wiki/File:W5200_Ethernet_Shield_Library.zip Anyways, I'm just trying to do the standard DHCP address print example. The problem is, I'm not getting ANY feedback from the arduino usually. But after futzing with the wires for awhile, I'll look up, and see the "no IP" message in the terminal. I've checked my wiring and rung it out a few times, but I still can't quite grasp what I'm doing wrong. Any suggestions for troubleshooting? Edit: I've tried using my uno this morning and it works perfectly. Maybe something weird about the library's interaction with the micro? Fanged Lawn Wormy fucked around with this message at 16:27 on Feb 11, 2015 |
# ? Feb 11, 2015 02:25 |
|
Fanged Lawn Wormy posted:I'm currently struggling with trying to get a Wiznet 820io Ethernet module to work with an Arduino Micro. I'm using the ICSP header for my SPI connections. The micro is like a Leonardo. There are some pin differences between the Leonardo and the UNO, specifically related to SPI. If that ethernet library uses SPI then you will probably have to use different pins.
|
# ? Feb 11, 2015 20:58 |
|
I was aware of the pin issue - I've been using both the ICSP header and the specific SPI pins on the board itself. I actually got some progress later today: the dhcp and static IP sketches I've been trying will give me IP addresses now. I even got the UDP test to work. However, there's a weird catch: I have to hold the reset button on the arduino for a bit, and then it will correctly find it's IP. If I simply plug in my USB cable, or do a quick 'tap' for resetting, I often get an IP of 0.0.0.0, even if I'm telling it how to define it's IP in a static way. Sketch example: code:
|
# ? Feb 11, 2015 23:17 |
|
Fanged Lawn Wormy posted:I was aware of the pin issue - I've been using both the ICSP header and the specific SPI pins on the board itself. Have you tried throwing in a ~200ms delay after Ethernet.begin? I recall having similar problems once and the issue ended up being that the ethernet module hadn't gotten its poo poo together yet and I was already asking for its IP when it didn't have one yet. Also I'm sure it's not an issue here but I generally change one digit of the MAC address when I use a library like this because you know EVERYONE is just gonna use the default as long as it works, perhaps even yourself, and one day you will end up on the same network as one of those devices.
|
# ? Feb 15, 2015 10:43 |
|
SoundMonkey posted:Also I'm sure it's not an issue here but I generally change one digit of the MAC address when I use a library like this because you know EVERYONE is just gonna use the default as long as it works, perhaps even yourself, and one day you will end up on the same network as one of those devices. I like using IDs that no one is likely to commercially use in these cases. DE:AD:BE:EF:xx:xx, DE:FE:C8:xx:xx:xx, etc. Also a good way to handle USB device IDs, since USB SIG won't support an official range of IDs for tinkerers and such. wolrah fucked around with this message at 21:41 on Feb 15, 2015 |
# ? Feb 15, 2015 21:22 |
|
What about I2C addresses?
|
# ? Feb 17, 2015 20:48 |
|
SoundMonkey posted:Have you tried throwing in a ~200ms delay after Ethernet.begin? I recall having similar problems once and the issue ended up being that the ethernet module hadn't gotten its poo poo together yet and I was already asking for its IP when it didn't have one yet. Actually, I did try putting in a delay - even a few seconds - and it never seemed to make a difference. I eventually found posts like this: http://marco.guardigli.it/2010/11/arduino-wiznet-ethernet-shield-proper.html Apparently some of the Arduino Ethernet shields had exactly the issue you talk about here: the AVR chip resets faster than the Wiznet chip, so you need a delay for them to catch up. I ended up finding I needed to reset the chip by tying the reset into another pin on the arduino, which I would then manually drive high-low-high to tell it to reset. This always works, but I hate that it ties up an extra pin. I may be able to get away with using the same SS pin, but I was actually trying to get away with not using an SS pin later (it will be the only SPI device) so I'm still not quite thrilled with the result.
|
# ? Feb 18, 2015 01:02 |
|
Has anyone ever read a resistive touch panel with Arduino? They're surprisingly cheap so I think I'm going to pick one up to mess with. I'm just trying to decide if I need a driver. I'm not worried about saving on analog ports or anything.
|
# ? Mar 1, 2015 02:52 |
|
If I want to multiplex an series of analog sensors, say a grid of photodiodes instead of a grid of LEDs, what IC chips should I be looking at for the job (and info on how to do it)?
|
# ? Mar 2, 2015 03:26 |
|
Are you trying to read them all at once? How many are you using? or maybe a better question: what is the application/purpose? edit: I guess I'll at least try to be helpful. A quick search showed me this: http://playground.arduino.cc/Learning/4051 I multiplexer chip would allow you to get analog readings from a bunch of different sources by using 3 digital pins to switch which source you're inputting into your single analog pin. It's supposed to be pretty fast, but I imagine it'd be pretty gross to have to try and read them all very fast. something like this: http://numato.com/digital-and-analog-io-expander-shield.html would probably be faster Fanged Lawn Wormy fucked around with this message at 06:13 on Mar 2, 2015 |
# ? Mar 2, 2015 05:51 |
|
The Royal Scrub posted:Has anyone ever read a resistive touch panel with Arduino? They're surprisingly cheap so I think I'm going to pick one up to mess with. I'm just trying to decide if I need a driver. I'm not worried about saving on analog ports or anything. You won't need a driver, maybe just a couple of pull up resistors. It's quite literally as easy as connecting four wires and running the appropriate code. Do a Google search for "Arduino 4 wire touch screen", and you'll get more information than you'll even know what to do with. I haven't messed with one in a while, but even with my near-zero knowledge of the programming language, I was able to bluff my way through a few code samples and get several touch panels working with very little effort.
|
# ? Mar 3, 2015 02:07 |
|
Acid Reflux posted:You won't need a driver, maybe just a couple of pull up resistors. It's quite literally as easy as connecting four wires and running the appropriate code. Do a Google search for "Arduino 4 wire touch screen", and you'll get more information than you'll even know what to do with. I haven't messed with one in a while, but even with my near-zero knowledge of the programming language, I was able to bluff my way through a few code samples and get several touch panels working with very little effort. Nice that's what I want to hear. Now I need to figure out something cool to do with it besides copy this: https://www.youtube.com/watch?v=j4OmVLc_oDw
|
# ? Mar 3, 2015 03:15 |
|
The Royal Scrub posted:Nice that's what I want to hear. Now I need to figure out something cool to do with it besides copy this: It sounds so angry when he moves it
|
# ? Mar 3, 2015 03:33 |
|
Forgive the awful quality, but I made a thing. https://www.youtube.com/watch?v=4j6CY-PdHpM Arduino Yun + Space Engineers with a Web API that I modded into it.
|
# ? Mar 3, 2015 04:39 |
|
Fanged Lawn Wormy posted:Are you trying to read them all at once? How many are you using? Basically the project was to see if I could rig up a high speed, low res digital camcorder.
|
# ? Mar 3, 2015 16:24 |
|
Parts Kit posted:a very, very high speed scanned digital video. I'm not sure if this killed it in addition to price, but I'm thinking any loop with 3 calls to digitalWrite for the select bits isn't going to be very high speed.
|
# ? Mar 3, 2015 17:06 |
|
Welp, I've managed to gently caress up my Yun somehow. Serial communication doesn't work with the 32u4 anymore and the device fails to enumerate via USB. I can still upload sketches via WiFi but it doesn't look like it's even communicating via the Bridge anymore. Balls.
|
# ? Mar 5, 2015 21:43 |
|
Try posting in Arduino's forums, they have Yun subforum and are pretty helpful. I believe there's a sketch you can run on the 32u4 that will show you the serial port connected to the Linux side as it boots so you can see if something is causing it not to boot (although if you can upload sketches wirelessly the Linux side is probably fine since that's the part that handles wireless sketch uploads).
|
# ? Mar 5, 2015 22:14 |
|
Turns out they make power-only USB cables. And I somehow own two of them.
|
# ? Mar 6, 2015 22:21 |
Captain Capacitor posted:Turns out they make power-only USB cables. And I somehow own two of them. Haha, that's mean.
|
|
# ? Mar 6, 2015 22:22 |
|
Captain Capacitor posted:Turns out they make power-only USB cables. And I somehow own two of them. What's the resistance between D+/D-?
|
# ? Mar 6, 2015 22:24 |
|
|
# ? May 28, 2024 12:18 |
|
Captain Capacitor posted:Turns out they make power-only USB cables. And I somehow own two of them. They're ever so slightly cheaper to manufacture, so they're more common than you might expect. They can be useful, though, if you want to let someone power/charge a device from a USB port on a computer but don't want their sketchy hardware connected (or if you don't want your hardware connected to a sketchy computer).
|
# ? Mar 6, 2015 23:07 |