Search found 9 matches

by robralston
Mon Jun 01, 2015 9:13 pm
Forum: Articles
Topic: Beyond The Arduino 3 - Guessing Game
Replies: 3
Views: 1531

Re: Beyond The Arduino 3 - Guessing Game

Andrew, thanks for the suggestion of outputting the ADC values over the UART. This was easy to do using the Serial Thermometer code. Changed the ADC_init routine from a single line loading the ADC prescaler bits to three lines so it was easy to comment/uncomment to generate the ADC Prescaler Selecti...
by robralston
Fri May 29, 2015 7:13 pm
Forum: Articles
Topic: Beyond The Arduino 3 - Guessing Game
Replies: 3
Views: 1531

Beyond The Arduino 3 - Guessing Game

A crude experiment "sort of" illustrates one of the concepts in the Guessing Game code, the need to set the ADC clock prescaler. A ten turn pot used for RV1 (Figure 8 Guessing Game Schematic) with the wiper to pin PC0, with this voltage measured by a voltmeter and set to 2.50 volts and used for the ...
by robralston
Thu May 28, 2015 7:31 pm
Forum: Articles
Topic: Beyond Arduino - What should I cover next?
Replies: 13
Views: 3663

Re: Beyond Arduino - What should I cover next?

Andrew, If I was running your guessing game code, would the Atmel Simulator show me that the DDRs had been set. But then I assume it could show nothing else because it is software and not connected to the actual hardware, i.e. it could not show button presses, and so forth. If I had a debugger runni...
by robralston
Tue May 26, 2015 3:48 pm
Forum: Become an Author
Topic: From reader to subscriber to writer? YES!
Replies: 2
Views: 5553

Re: From reader to subscriber to writer? YES!

I've written an article about using an Arduino UNO to "visualize random numbers". The article shows several aspects of the Arduino random number generator using EEPROM to store random numbers with and without using a seed, plus a counter and a flag, to persist between 10 resets. Then all of the data...
by robralston
Tue May 26, 2015 3:33 pm
Forum: Articles
Topic: Beyond Arduino - What should I cover next?
Replies: 13
Views: 3663

Re: Beyond Arduino - What should I cover next?

Hi I vote for I2C and, especially, debugging (simulator?). Also, although I etched simple single sided boards many moons ago, it would be very nice to see how to use some software to design a board (Eagle?). I have these wonderful RGB 7-segment displays from Adafruit but they cannot be breadboarded ...
by robralston
Tue May 05, 2015 10:23 am
Forum: Articles
Topic: Beyond the Arduino - AVR article
Replies: 10
Views: 6955

Re: Beyond the Arduino - AVR article

Andrew,

I was testing whether turning on the internal pull up resistor on pin B1 mattered so I commented out /* PORTB |=(1<<PORTB1) */ It does.

With that internal pull up resistor not activated, the LED just "strays" between on and off. But adding an external pull up makes the program work again.
by robralston
Mon May 04, 2015 10:48 am
Forum: Articles
Topic: Beyond the Arduino - AVR article
Replies: 10
Views: 6955

Re: Beyond the Arduino - AVR article

Yes, now I understand the difference between (0<<3) or ~(1<<3). I appreciate your answering questions; I'm going to have a lot of them. Reading the data sheet raises many questions. re Listing 1 in article 2: - Program works with the given coding. Then, when I comment out DDRB &= ~(1<<DDB1); it stil...
by robralston
Mon May 04, 2015 10:46 am
Forum: Articles
Topic: Beyond the Arduino - AVR article
Replies: 10
Views: 6955

Re: Beyond the Arduino - AVR article

Yes, now I understand the difference between (0<<3) or ~(1<<3). I appreciate your answering questions; I'm going to have a lot of them. Reading the data sheet raises many questions. re Listing 1 in article 2: - Program works with the given coding. Then, when I comment out DDRB &= ~(1<<DDB1); it stil...
by robralston
Tue Apr 28, 2015 7:50 am
Forum: Articles
Topic: Beyond the Arduino - AVR article
Replies: 10
Views: 6955

Re: Beyond the Arduino - AVR article

Thank you for the articles. Been having trouble getting into Atmel Studio. You paved the way: set for Release and Start without Debugging. I never would have thought about using that last command. Bought an AVRISPmkII from Atmel but didn’t pay attention to the shipping costs so I really did pay, alm...