Show Posts
Pages: [1] 2 3 ... 9
1  Using Arduino / Programming Questions / Re: working with Array (basic code but very strange) on: September 02, 2014, 04:32:11 pm
Actually, I am wrong.  I was thinking of classes.  I have been working in .NET too much, thinking of all data types as derivative of Object.  Plus I wrote int[0] instead of int[1], ha.

int i;
int i[1];

Those are the same. michinyon is incorrect.  Both allocate 2 bytes of memory and add a pointer to the stack. 

Anyways, off topic on what the OP asked.
2  Using Arduino / Programming Questions / Re: working with Array (basic code but very strange) on: September 02, 2014, 03:21:19 pm
Quote
asks for an array with one element, which is no different than a plain int,

It creates a storage location which contains one int  and then it creates another variable which is a pointer to that location.    Not the same at all.
I need to give up the gin - I can't make that out at all.
He is saying int[0] != int because of how the code is compiled and values are stored in memory.
3  Using Arduino / Programming Questions / Re: beginner doubt about variables on: September 02, 2014, 01:59:16 pm
arduinomagbit , can you explain what you are trying to do in a non-programming way?  What are you trying to accomplish?  What is your goal the code is trying to solve?  The problem people are having is they have no context on what the code is suppose to accomplish.

Think your your program like a recipe (hence why many coding books have "cookbook" in their titles).  Tell us what you are trying to make, what your ingredients are (inputs), what steps are involved to accomplish the final product, and the expected final product (outputs).

UKHeliBob, I am going to add a caveat to your suggestion as new coders shouldn't use that unless they understand it.  That code will work for numeric values, and only if added the value stay with in the limit of the data type.  If the data type is,  let's say int, then if a + b is greater than what an int can hold that won't work.  This is a fairly common problem to summing values, having the result datatype be too small for the sum.
4  Using Arduino / Project Guidance / Re: Controlling LED arrays - Not sure where to start on: August 15, 2014, 12:40:40 pm
This is good, but start from the overview page.

Also, their NeoPIxel guide is great.  NeoPixels has made controlling LEDs easy.
https://learn.adafruit.com/adafruit-neopixel-uberguide/overview
5  Using Arduino / Project Guidance / What is the fastest way to transfer data? on: July 16, 2014, 01:07:18 pm
What is the fastest way to transfer data between two arduinos?
6  Using Arduino / Project Guidance / Re: Powering a 5v circuit with car and backup lipo on: March 13, 2012, 09:58:58 am
So then this begs the question, what diode should I be using?  Actually, I am trying to figure out how to hook it up.  Don't I need a relay in there instead of a diode?
7  Using Arduino / Project Guidance / Re: Powering a 5v circuit with car and backup lipo on: March 11, 2012, 04:50:15 pm
Space is a concern.  But you just gave me an idea I can't believe I didn't think of.  A pocket bike battery is also lead acid.  This should be enough.

http://www.batteryspec.com/cgi-bin/cart.cgi?action=link&product=300G95

Thanks, your idea will work with that battery.
8  Using Arduino / Project Guidance / Re: Powering a 5v circuit with car and backup lipo on: March 09, 2012, 01:11:49 pm
So you are saying have the arduino be powered by which ever source and control which source is powering it?  That sounds like it could fail at some point and the arduino would need powered at all times.

Yes, I will have a master switch to shutoff the project.  I am hoping to keep the project component separate from the power, the power supplies (car and lipo) only supply power.

How about a little more detail.  The project will run off the lipo most of the time.  Most of the time I will just shut it off while the car is running (not legal to have this on while driving on public roads).  So while I am driving why not have the car charge the battery is what I am thinking.  However, if parked at a show and the car is running I figure why waste the lipo battery when the alternator is running also.

9  Using Arduino / Project Guidance / Powering a 5v circuit with car and backup lipo on: March 09, 2012, 11:47:06 am
I am going to need to power an arduino and several of these sparkfun led strips.  2 strips would almost be 4 amps.

I was thinking about using a Traxxis 7.4v 12800mAh R/C car battery.  Those can handle the large loads.  I am not an expert in power supplies.  I've been researching what I can do and I have hit a wall.  I would like the car power system to charge the battery while it is running and the project use the power from the car.  Then when the car isn't running to use the battery's power. 

i am not sure how to accomplish this.  I see some obstacles.  One, need to regulate the car voltage as it can spike.  Two, how to charge the battery while using the car power system.  I would obviously used a switched power line in the car, however, to protect form accidentally draining the car battery if it isn't running I could use a voltage switch that disconnects the car battery form my project.

My backup plan is to just have a single switch that when off the car power is connected to a charger to charge the lipo battery an the lipo is no powering the project. When on the switch will cut off the car's power system completely and connect the lipo to the project.  i would rather have an automatic way instead if possible.

I found this but I am not sure if that can be used for what I want.
10  Using Arduino / Project Guidance / Re: Rgb Led stip uniqe over time on: May 03, 2011, 04:20:57 pm
http://www.sparkfun.com/products/10312

that as well.
11  Using Arduino / Installation & Troubleshooting / Re: avrdude: stk500_getsync(): not in sync: resp=0x0d on a mac on: February 24, 2011, 07:02:11 pm
Alright, I got the RBBB.  Same exact issue.  This means that somehow the Mac side is rejecting my FTDI cable.
12  Using Arduino / Installation & Troubleshooting / Re: avrdude: stk500_getsync(): not in sync: resp=0x0d on a mac on: February 24, 2011, 04:55:51 pm
Yes, I tried doing just a simple sketch.  Like I said, I uninstalled the arduino software and all extra libraries (in the documents fold on both mac and windows).  I then just tried the blink led sketch, on both windows and mac.  It uploads fine on windows, but on the mac side I get the error.

The GPS shield is not using pins 0 and 1 when it is on the arudino as I can upload fine on windows.

Yes, I did search.  But as you said it has come up a lot lately so there are a lot of searched to sift through.  None of what I read seems to be the appropriate answer.  Most are saying the cable/ftdi connection is bad or the wrong board was selected.  If either of those were the case it wouldn't work on the windows side.

So, the conclusion then is somehow the Mac side has decided to not like the FTDI cable anymore.  I have an RBBB arduino on the way, I will have to try with that when I get it.  I have this cable: http://www.sparkfun.com/products/9718

I did notice when double checking the board to select in the software the two Arduino Pro entries are the same description.  They both say the 128 version.  No 328 version listed.  I tried all possible 328 boards.  As I said, it worked a couple weeks ago but not now.  I don't remember what board was selected a couple weeks ago.
13  Using Arduino / Installation & Troubleshooting / Re: avrdude: stk500_getsync(): not in sync: resp=0x0d on a mac on: February 24, 2011, 03:10:14 pm
http://arduino.cc/en/Main/ArduinoBoardPro

"new module" is new GPS module to replace the defective unit.  I bought the GPS shield and EM-406 GPS module form sparkfun.  The antenna wasn't working on the module I received.  The module was communicating with the arduino over serial but not getting a fix.  After talking to sparkfun support we found it was a defective GPS module.  So I had it replace.  I didn't change the code or install any new libraries for the Arduino. 

Obviously it worked on my Mac before I sent in the defective unit.  After hooking up the new unit I got that error.  I booted to the Windows side of my Mac and also using arduino 0022 it worked fine.  So it isn't the FTDI cable and it probably isn't the hardware.  Somehow the software changed.

I tried uninstalling the arduino software and removing any third party libraries I had.  I then reinstalled the arduino software and tried the basic blink led sketch.  I still got the error.
14  Using Arduino / Installation & Troubleshooting / avrdude: stk500_getsync(): not in sync: resp=0x0d on a mac on: February 23, 2011, 11:31:42 pm
I am confused.  A couple weeks ago I got an arduino pro 328 and the gps shield.  I am using arduino 0022.  It worked fine but the GPSr was defective.  I got the new module and now I get
avrdude: stk500_getsync(): not in sync: resp=0x0d
avrdude: stk500_recv(): programmer is not responding

I booted to windows and it works fine there.  Why would it fail in windows?
15  Using Arduino / Project Guidance / Re: Make a permanent project on: February 18, 2011, 01:14:14 pm
If you need a shield then it is kinda tough.  If you don't there are several options.  The RBBB mentioned before.  Maker Shed has something similar.
http://www.makershed.com/ProductDetails.asp?ProductCode=MKSB012

I use this for simple projects
http://www.makershed.com/ProductDetails.asp?ProductCode=MKSKL4
Pages: [1] 2 3 ... 9