Show Posts
Pages: [1] 2 3 ... 361
1  Using Arduino / Programming Questions / Re: Multiple SPI on: September 15, 2014, 02:45:51 am
AVR allows the same according to ATMega chip docs, but I don't know if we have a library for the hardware.
Having hardware shift the bits in/out saves a constant load on the processor.

 
2  Using Arduino / Project Guidance / Re: Static Shift Register on: September 14, 2014, 02:03:48 am
http://arduino.cc/en/Reference/BitWrite

Quote
bitWrite()

Description

Writes a bit of a numeric variable.
Syntax

bitWrite(x, n, b)
Parameters

x: the numeric variable to which to write

n: which bit of the number to write, starting at 0 for the least-significant (rightmost) bit

b: the value to write to the bit (0 or 1)

Returns

none
3  Using Arduino / Project Guidance / Re: Debugging on: September 03, 2014, 08:12:41 pm
Compare to the Due or a stripped-down compatible?
4  Using Arduino / Project Guidance / Re: Debugging on: September 03, 2014, 10:11:50 am
You can have the code write a log to SD if you can spare the pins and overhead or even use a log as part of the process itself. I've just done that for someone using enums and PROGMEM labels to track the operation and timings of a few different asynch  state machines down to great detail.

Using event-driven modules does allow testing small pieces that can be used as they are in the whole. If code-weaving is avoided, not putting the line to act on a sensor read right after the code doing the read right before the code to report (but that is common do-it-right-there-now sense isn't it?) then a great deal of complexity and IMO extra code can be cut out of projects big enough to be debug nightmare spaghetti.

It's not like you're going to fit massive code on a 328P anyway, is it?
The environment is small and simple enough that it should force some changes in practice.
I view that as good. Too many tools will actually encourage complex over-development.by permitting it!

KISS!
5  Using Arduino / Project Guidance / Re: Debugging on: September 02, 2014, 08:25:14 pm
There are AVR emulators but I can't say about debug-IDE of any of those.

Maybe see what free Code::Blocks Arduino version will do?


6  Community / Bar Sport / Re: Gas carrying charged particles on: September 02, 2014, 08:18:48 pm
Charge difference.
A pin and a plate with high charge between inside a balloon would make negative ions.
If one balloon has negative ions of higher energy than another?

Erp... had to fix the syntax there!

7  Community / Bar Sport / Re: Reality check - when to stop adding features on: September 02, 2014, 09:04:49 am
Creeping featurism is a term synonymous with bad management.


Exactly..... bad project management, especially; the dreaded scope creep.

Last time it got pulled on me by a no-nothing in charge, it was to be like Microsoft.
I just about screamed. That is Wrong in so many ways!
8  Community / Bar Sport / Re: Gas carrying charged particles on: September 02, 2014, 04:28:36 am
Could you ionize gas inside balloons or bulbs differentially?
 
9  Community / Bar Sport / Re: Reality check - when to stop adding features on: September 02, 2014, 04:16:49 am
Creeping featurism is a term synonymous with bad management.
10  Community / Bar Sport / Re: How many times is someone not replying after asking question ? on: September 02, 2014, 03:53:04 am

The green stuff in the backyard is growing, why??????

Because you didn't put in a rock garden or just get it paved over?

Quote
I've been told that I have to use a machine that uses environmentally harmful, carcinogenic products, makes unprecedented amounts or harmful chemicals, but it fixes this green stuff.

Solution: move south. Way south down where the funny birds that swim live and there are no taxes.
OTOH no gas stations, supermarkets, local bars, etc unless there's a friendly port or research station nearby.

That'll fix ya.

11  Using Arduino / Project Guidance / Re: Debugging on: September 01, 2014, 07:04:54 am
You can sometimes use leds on free pins to show what path your code takes.
But you may have to add delays just to see the lights at all and that can ruin timing if timing matters.

If you show your code and wiring this wouldn't be such a game of poking in the dark.
12  Community / Bar Sport / Re: Arduinoes and wall light switches on: September 01, 2014, 04:19:37 am
Depending on how you wire them, you can make logic gates and flip-flops from switches and bulbs.

This is real basic stuff I remember from school in the 60's and 70's. Maybe it's a topic again?

https://www.google.com/search?q=light+switch+logic+gates&tbm=isch&tbo=u&source=univ&sa=X&ei=KoYFVLWiJcSfggT7w4HICQ&ved=0CB0QsAQ&biw=1013&bih=590
13  Community / Bar Sport / A nice view of the simplicity and power of state/Turing machines. on: September 01, 2014, 03:52:14 am
https://www.youtube.com/watch?v=dNRDvLACg5Q

I knew some about Turing's work when I first applied program states to a code problem long ago.
The original work was done before I was born.
14  Using Arduino / Programming Questions / Re: Logger Serial1 data to SD card - Need help with stable logging on: August 27, 2014, 10:10:19 am
That's what I get for guessing!

Thanks, PaulS!
15  Using Arduino / Programming Questions / Re: Logger Serial1 data to SD card - Need help with stable logging on: August 27, 2014, 07:10:24 am
I must have something wrong.

Code:
  while(!GPS.newNMEAreceived()) { //Loop until you have a good NMEA sentence
    c=GPS.read();
  }

This looks like it says

As long as there is no character received, read the device and ignore what you get.

Whereas this

Code:
  while(!GPS.newNMEAreceived());  // Loop until there is data to read

would dispense with reading what isn't there.

But I can't have that right.

Pages: [1] 2 3 ... 361