Go to advanced search

by ytram99
Sun Sep 21, 2014 3:23 pm
Forum: HATs and other add-ons
Topic: Gertboard ad RaspberryPi B+
Replies: 1
Views: 2589

Gertboard ad RaspberryPi B+

Will the classic Gertboard V2 fit onto the new RaspberryPi B+ and function OK?
by ytram99
Sat Aug 02, 2014 7:23 pm
Forum: HATs and other add-ons
Topic: Arduino IDE on Gertboard failed
Replies: 3
Views: 2072

Re: Arduino IDE on Gertboard failed

As I said, I would report further developments. Belatedly, I pulled out the Gertboard schematics and found by connecting PB4 to PB5, I had shorted MISO to SCK - no wonder the upload failed. Just removing the connection between PB4 and PB5, however, did not fix the problem. I still received AVRDUDE e...
by ytram99
Wed Jul 30, 2014 4:13 pm
Forum: HATs and other add-ons
Topic: Arduino IDE on Gertboard failed
Replies: 3
Views: 2072

Re: Arduino IDE on Gertboard failed

More information: My sketch had PB5 connected to PB4. When I removed this connection the sketch uploaded. If I then reconnected PB5 to PB4, after uploading, the sketch worked OK. I unplugged all wires and jumpers and reconnected everything. Unplugged Gertboard from Pi and reconnected. No help. Sketc...
by ytram99
Tue Jul 29, 2014 7:48 pm
Forum: HATs and other add-ons
Topic: Arduino IDE on Gertboard failed
Replies: 3
Views: 2072

Arduino IDE on Gertboard failed

I was doing some programming using Arduino IDE to program the ATmega chip on the Gertboard. I was getting unexpected results - then I found I could no longer upload. I received the following error message: "avrdude: AVR device not responding avrdude: initialization failed. rc=-1" Just a few minutes ...
by ytram99
Wed Jun 25, 2014 12:13 pm
Forum: HATs and other add-ons
Topic: Arduino Leonardo Mouse Move Functions on the Gertboard
Replies: 3
Views: 3058

Re: Arduino Leonardo Mouse Move Functions on the Gertboard

Thanks, that link gives me a good place to start.
by ytram99
Mon Jun 23, 2014 6:48 pm
Forum: HATs and other add-ons
Topic: Arduino Leonardo Mouse Move Functions on the Gertboard
Replies: 3
Views: 3058

Arduino Leonardo Mouse Move Functions on the Gertboard

Is it possible to implement mouse move functions (Mouse.begin() for example) on the Gertboard such as is done with the Arduino Leonardo? Is there a library to do that? Thanks
by ytram99
Sun Jun 15, 2014 9:22 pm
Forum: HATs and other add-ons
Topic: Writing and Reading From ATmega EEPROM
Replies: 22
Views: 11151

Re: Writing and Reading From ATmega EEPROM

The English word your are looking for is 'substitute'. Yeah, I found that on google, but wasn't able to use it in a full sentence. Later I found "second-hand" and "vicarious" ("felt through imagined participation in the experience of others"). Anyway, I had a hunch both you and ytram99 would know w...
by ytram99
Sun May 25, 2014 4:11 pm
Forum: HATs and other add-ons
Topic: Writing and Reading From ATmega EEPROM
Replies: 22
Views: 11151

Re: Writing and Reading From ATmega EEPROM

Reading/writing the EEPROM is all happening on the silicon, inside the black box. Indeed, that is why this has me stumped. I have one more suggestion: 1/ Program on Arduino. 2 Check on Arduino. (probably works) 3/ Put on Gertboard 4/ Check with Gertboard (probably fails) Now: 5/ Go back to Arduino ...
by ytram99
Sat May 24, 2014 9:16 pm
Forum: HATs and other add-ons
Topic: Writing and Reading From ATmega EEPROM
Replies: 22
Views: 11151

Re: Writing and Reading From ATmega EEPROM

using direct register access Long time since I used the eeprom but my recollection is that you need to unlock access with a number of signature writes. I suggest you do an intense read of the eeprom section of the datasheet. Gert, I have taken the EEPROM issue to an extreme. Panik and I have had qu...
by ytram99
Sat May 24, 2014 9:00 pm
Forum: HATs and other add-ons
Topic: Writing and Reading From ATmega EEPROM
Replies: 22
Views: 11151

Re: Writing and Reading From ATmega EEPROM

Only you and Gert responded to this problem. I'm going to reply back to Gert's last post and suggest he take a look. I would think he would be interested.

Thanks again for your help.
by ytram99
Sat May 24, 2014 4:13 pm
Forum: HATs and other add-ons
Topic: Writing and Reading From ATmega EEPROM
Replies: 22
Views: 11151

Re: Writing and Reading From ATmega EEPROM

The EEPROM saga continues - but with good information, I think. Think I'll list the the events: 1. Purchased Arduino Uno 2..On PC, found that my sketches to write to, and read from, the EEPROM worked just fine. These are the two sketches you can find in my response to Gert on May 10. They start with...
by ytram99
Tue May 20, 2014 8:10 pm
Forum: HATs and other add-ons
Topic: Writing and Reading From ATmega EEPROM
Replies: 22
Views: 11151

Re: Writing and Reading From ATmega EEPROM

Geez, don't know what to think. You and I have done the same thing. I'm so wrapped up in this I ordered an Arduino Uno. Didn't realize they were so inexpensive. Also ordered three more Atmega328's. I ordered the two I have at the same time and the markings indicate they may be of the same production...
by ytram99
Tue May 20, 2014 4:36 pm
Forum: HATs and other add-ons
Topic: Writing and Reading From ATmega EEPROM
Replies: 22
Views: 11151

Re: Writing and Reading From ATmega EEPROM

I don't want them taking valuable Flash memory, so the EEPROM seems to be an ideal solution. There's 32KB of Flash, and only 1KB of EEPROM. Are you sure you're running out of space in Flash? [edit:] There are ways of using the Flash as a 'sort of' eeprom with the PROGMEM modifier, but there have al...
by ytram99
Mon May 19, 2014 3:49 pm
Forum: HATs and other add-ons
Topic: Writing and Reading From ATmega EEPROM
Replies: 22
Views: 11151

Re: Writing and Reading From ATmega EEPROM

My guess (again) is that the moment you flash the second sketch, the stuff the first sketch wrote to eeprom is overwritten with FF's. Not sure how you write to flash without overwriting the EEPROM (pretty sure it can be done, just not *how*. Let alone with the Arduino IDE, which I'm also guessing y...
by ytram99
Mon May 19, 2014 3:13 pm
Forum: HATs and other add-ons
Topic: Writing and Reading From ATmega EEPROM
Replies: 22
Views: 11151

Re: Writing and Reading From ATmega EEPROM

Thank you for your response. This EEPROM thing is driving me crazy. Your suggestion in your first post gave me a glimmer of hope of solving this thing. I took your code snippet and wrote the following really simple sketch: #include <avr/eeprom.h> void setup(){ Serial.begin(9600); byte address; byte ...
by ytram99
Sun May 18, 2014 10:29 pm
Forum: HATs and other add-ons
Topic: Writing and Reading From ATmega EEPROM
Replies: 22
Views: 11151

Re: Writing and Reading From ATmega EEPROM

I have been trying to write to and read from the EEPROM on my Gertboard ATmega328P - but have not been successful. There is sample code in /usr/share/arduino/libraries/EEPROM/examples that write, read, and clear the EEPROM. They compile OK. The only thing I ever read from any EEPROM address is hex ...
by ytram99
Sun May 18, 2014 9:17 pm
Forum: HATs and other add-ons
Topic: Writing and Reading From ATmega EEPROM
Replies: 22
Views: 11151

Re: Writing and Reading From ATmega EEPROM

It's been a while, but I've been using the avr-libc functions to read from and write to the eeprom. That sort of 'just worked'. http://www.nongnu.org/avr-libc/user-manual/group__avr__eeprom.html Something like this: #include <avr/eeprom.h> uint8_t EEMEM myvar; uint8_t writevalue = 42; eeprom_update...
by ytram99
Sat May 17, 2014 4:01 pm
Forum: HATs and other add-ons
Topic: Writing and Reading From ATmega EEPROM
Replies: 22
Views: 11151

Writing and Reading From ATmega EEPROM

I have been trying to write to and read from the EEPROM on my Gertboard ATmega328P - but have not been successful. There is sample code in /usr/share/arduino/libraries/EEPROM/examples that write, read, and clear the EEPROM. They compile OK. The only thing I ever read from any EEPROM address is hex F...
by ytram99
Mon Dec 16, 2013 7:36 pm
Forum: HATs and other add-ons
Topic: Changing ATMega Frequency
Replies: 1
Views: 1629

Re: Changing ATMega Frequency

I'm going to answer my own question. If you wish to change the change the frequency of the resonator/crystal on your Gertboard, and you have any delay statements in your script, you must tell the chip the new frequency. This is done when you compile the script. The compile process will look into the...
by ytram99
Thu Dec 12, 2013 10:48 pm
Forum: HATs and other add-ons
Topic: All leds blinking
Replies: 6
Views: 2996

Re: All leds blinking

I also say the problem of all the LEDs blinking and was rather dismayed. Please see my two blog entries: This one discusses the problem: http://thepiandi.blogspot.com/2013/07/gertboard-what-heck-why-are-those-leds.html This one discusses what I did about the problem (soldered resistors to the Gertbo...
by ytram99
Thu Dec 12, 2013 7:18 pm
Forum: HATs and other add-ons
Topic: Changing ATMega Frequency
Replies: 1
Views: 1629

Changing ATMega Frequency

I'm new to the Pi and Arduino IDE software environments. I used the ATmega328 on my Gertboard to send RF commands to my camera remote controller when triggered by a motion detector. Now, I wish to remove the microcontroller from the Gertboard and install it on a PCB. However, I want to use a differe...
by ytram99
Fri Oct 11, 2013 9:21 pm
Forum: Python
Topic: Python Script Won't Run with gksudo
Replies: 0
Views: 483

Python Script Won't Run with gksudo

I had successfully developed a python 2.7 script that talked over GPIO to a temperature sensor. Thus, I needed to run it using sudo. All worked great. Then I added a graphical interface using Tkinter. This new script will not run using sudo saying: "Client is not authorized to connect to server". Ev...
by ytram99
Thu Oct 03, 2013 8:57 pm
Forum: Beginners
Topic: Display Dialog Boxes from Root
Replies: 3
Views: 813

Re: Display Dialog Boxes from Root

Thanks DeeJay I tried gksudo. At first I did not think it worked, but my dialog box was hidden by another dialog box that the system brought up. That dialog box came up with the title: "Granted permissions without asking for password" There was more including: "The 'python 'filechooser.py" program w...
by ytram99
Thu Oct 03, 2013 4:41 pm
Forum: Beginners
Topic: Display Dialog Boxes from Root
Replies: 3
Views: 813

Display Dialog Boxes from Root

I tried to incorporate the following into a python script that must be run from root. from Tkinter import Tk from tkFileDialog import asksaveasfilename root = TK().withdraw() f = asksaveasfilename() This caused an exception: "Client is not authorized to connect to Server....." If I put the code into...
by ytram99
Wed Sep 18, 2013 3:14 pm
Forum: Beginners
Topic: Graphing With RRDtool and PyRRD
Replies: 0
Views: 1717

Graphing With RRDtool and PyRRD

If you are interested in making measurements (from temperature sensors, for example), then storing, and finally graphing those measurements I would like to suggest you visit my blog thepiandi.blogspot.com and read my post "RRDtool For Dummies Like Me" (Sept. 10). I spent lots of time with RRDtool an...

Go to advanced search