Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 40
61  Using Arduino / Project Guidance / Re: Arduino processing language versus AVR C language on: June 02, 2012, 08:22:44 pm
- Arduino developers accomplish in a day what AVR C developers accomplish in a week. I think this reason alone beats all else


this is very subjective and completely dependant on the competence of the particular developer

Also you forgot, or probably didn't know, that Arduino breaks a lot of C++ rules so the code isn't immediantly portable. Somebody who is extremely experienced at real C++ will find it somewhat awkward to program in Arduino.

62  Using Arduino / Installation & Troubleshooting / Re: Arduino will not load on device manager on: June 01, 2012, 12:17:53 am
after download? I don't think it'll show up unless you plug it in.
63  Development / Suggestions for the Arduino Project / Re: Arduino Leonardo with EagleCAD 5.10? on: May 31, 2012, 08:35:12 pm
The PDF should be the same as the Eagle files.  The two ATmel chips are different footprints for the same chip, so either can be used depending on availability. 

You mean the QFN version is underneath the QFP version? Cool, didn't know that.

Maybe try running the Windows EAGLE 6 in WINE?
64  Using Arduino / Project Guidance / Re: SD Card mirroring on: May 30, 2012, 02:50:57 pm
arrange a multiplexer chip or maybe some FET based analog switches to switch the SD card back and forth from Camera to Arduino.

Possible/probable problem: The SD card may lose it's "Initialization" when switching?

The camera might have initialized the SD card into SD mode, your Arduino is most likely only capable of SPI mode.

Power-down-power-on the card again to reset it and re-initialize it into SPI mode
65  Community / Bar Sport / Re: Arduino Leonardo on: May 29, 2012, 01:44:09 pm
Leonard may have "interesting" issues with running "serial IO" to a PC concurrently with a sketch, since it'll have to run "USB CDC/ACM" magically in the background.  The need for a USB stack will also cut down on the maximum user code size.

Solution: put a button on the HWB pin and forget about auto reset, take out the USB stuff from the core, and also you need to edit the fuse bits for this to work
66  Community / Bar Sport / Re: project evolution timelapse on: May 28, 2012, 02:32:38 pm
MP4 compression at 60% quality gave me a bit over 4MB

Here it is on YouTube

67  Community / Bar Sport / project evolution timelapse on: May 27, 2012, 10:20:49 am
I wrote an AutoIt script that runs once per second, it detects when EAGLE is the active window, then checks if anything has changed on the screen, then it takes a screen shot of the EAGLE window if the screen has changed. The screen shots are saved with the current date and time.

The idea is that I can have this loop in the background and work on a project, and end up with a nice animation of how the project evolves.

Here I am making a library component from scratch. 25MB GIF animation.

I forgot to give the footprint ">NAME" on the "tName" silkscreen layer, probably forgot some other minor things that I fixed later, so don't take this animation as some sort of tutorial. Note that the capture script isn't smart enough to capture sub dialogs, so it never captured the pin assignment dialog, which took a long time near the end. It also never captured the times when I had to type in anything manually.

The AutoIt script is below, edit it to suit your needs, the folder path may not be automatically created so do that manually.
#include <ScreenCapture.au3>

Dim $prevPixChkSum

While True
   $winList = WinList()
   $winCnt = $winList[0][0]
   For $i = 1 To $winCnt Step 1
  If StringInStr($winList[$i][0], "EAGLE", 1) And (StringInStr($winList[$i][0], "Board", 1) Or StringInStr($winList[$i][0], "Schematic", 1) Or StringInStr($winList[$i][0], "Library", 1)) Then
If WinActive($winList[$i][0]) Then
$winPosInfo = WinGetPos($winList[$i][0])
$filePath = "C:/EAGLECaps/" & @YDAY & @HOUR & @MIN & @SEC & ".png"
$curPixChkSum = PixelChecksum($winPosInfo[0] + 150, $winPosInfo[1] + 150, $winPosInfo[0] + $winPosInfo[2] - 150, $winPosInfo[1] + $winPosInfo[3] - 150, 4)
If $curPixChkSum <> $prevPixChkSum Then
   _ScreenCapture_Capture($filePath, $winPosInfo[0], $winPosInfo[1], $winPosInfo[0] + $winPosInfo[2], $winPosInfo[1] + $winPosInfo[3], False)
   $prevPixChkSum = $curPixChkSum

I'm thinking of adding all the other tools I use to the windows it captures, such as Notepad2, Notepad++, Eclipse, Visual Studio, SolidWorks, etc. It's not hard to edit this script.
68  Community / Exhibition / Gallery / Re: ArduinoIDE on RaspberryPi on: May 23, 2012, 10:13:34 am
hey can you try bootloading using the UART on the GPIO header directly?
69  Using Arduino / Project Guidance / Re: Eagle symbols needed for High Density Memory Shield on: May 23, 2012, 10:09:47 am
I suggest you download the SparkFun library, there are parts named M01 M02 M03 ... Mxx where xx is the number of pins, up to around 20, and they usually have Molex and JST and regular straight header footprints.

Also at this point I think it's worth it for you to learn how to make EAGLE footprints yourself
70  Development / Suggestions for the Arduino Project / Re: Option to Not include all the USB libraries (Leonardo & compatibles) on: May 23, 2012, 10:02:36 am
Why not include USB stuff as libraries instead of as a part of the core? The IDE already searches for #include to see if you want to compile in a library, so just strip those classes from the core and add them as libraries into the libraries folder.

I think the auto-reset thing is a bad design, I'd rather use a button on HWB, I do on all my own designs, I own a Teensy++ and I've actually soldered a tiny tactile switch between HWB and GND. The HWB pin doesn't do anything else so it's not even considered a waste.
71  Using Arduino / Programming Questions / Re: Button press on: May 22, 2012, 05:16:41 pm
I think the compiler will optimize that stuff anyways.

But you are allowed to put function calls inside the expression for the if statements

Also you don't have to explicitly reset buttonState to 0, but again, the compiler will probably see that and optimize it out for you
72  Using Arduino / General Electronics / Re: Arduino's Overcurrent Defense Mechanism? on: May 21, 2012, 10:07:44 am
those fuses are not instant, and they don't really cut off current, their resistance simply increases with temperature, and the temperature increases with current.

if you left a screw driver between 5V and GND and went for a coffee, I think the fuse might trip completely
73  Using Arduino / Project Guidance / Re: Eagle symbols needed for High Density Memory Shield on: May 21, 2012, 12:39:43 am
err, guys? text editor? I just open a new library and drag-drop a footprint into it, it accomplishes pretty much the same thing, this worked in EAGLE 5 days...

I made my own TXB0101 footprint a while back, see attached, it might help (EDIT, it might not, totally different footprint lol, oh well... good luck guys)
74  Using Arduino / Programming Questions / Re: Yaw controller using Euler angles on: May 20, 2012, 11:34:08 pm
Error should be calculated by subtracting the current angle from the target angle. This number can be anywhere between -360 and +360 as long as the current angle and target angle are ranged between -180 and +180

This presents the problem of "taking the long way around"

So if your error is lower than -180 or higher than +180, then recalculate your error

if (error < -180) error = (360 + error);
else if (error > 180) error = -(360 - error);

this operation bounds your error between -180 and +180 while taking into account discontinuities
75  Development / Other Software Development / Re: Wire library enables internal pull-ups -> bad for 3.3V I2C devices. on: May 11, 2012, 11:58:57 am
open drain means the bus can either be grounded or floating

now if all devices use open drain pins on the I2C bus, how can the bus be anything except one of either grounded or floating?

where can 5V possibly come from, if there is literally no physical connection, no semiconductor, no conductor, not even any resistors, that connects the bus to 5V? (note, this is the "ideal" case, but the non-idealities does not matter here)

oh wait, "Wire.h" enables the pull-up resistors to 5V, this is where the original problem comes from. Solution? Disable them and add external pull up resistors to 3.3V instead

The only situation where you would actually need a level converter is when the logic high threshold voltage of a device is above 3.3V, but this situation is VERY rare, that's why you read the datasheet first and look for input logic threshold voltage specifications

obviously if you have a device that uses a voltage lower than 3.3V, then you use another appropriate voltage instead and the same issue with logic threshold applies
Pages: 1 ... 3 4 [5] 6 7 ... 40