Go to advanced search

by mdperry
Wed Jul 31, 2013 2:45 am
Forum: Networking and servers
Topic: RPi vs. DNS-323
Replies: 1
Views: 1059

RPi vs. DNS-323

I was bored so I decided to see how my RPi configured as a NAS compared to my Dlink DNS-323 I have on my home network. I used a freeware utility called Lan Speed Test (Lite) v1.3.0 to do the benchmarks and ran the tests from the same PC with under the same conditions. My DNS-323 has a 500mhz ARM pro...
by mdperry
Sun Apr 14, 2013 4:52 am
Forum: Other projects
Topic: Syma 107 Helicopter with PI
Replies: 2
Views: 1954

Syma 107 Helicopter with PI

I am trying to use my Pi to fly a Syma 107 helicopter and my thought was to replace the IR controller with software on my PI. A number of people have reverse engineered the protocol and got this working with Arduino so it should be possible in theory. I purchased the following IR transmitter: https:...
by mdperry
Tue Mar 12, 2013 2:39 am
Forum: Troubleshooting
Topic: Prevent SD-Card Corruption
Replies: 215
Views: 168385

Re: Prevent SD-Card Corruption

I think sd corruption is rare. I have only seen those when playing with extreme overclocking. (more than 1000 mhz). After the raspberry is working stable, there should noit be corruptions. I'd be happy if this would be rare. Mine is not overclocked, I use a SD-Card that is on the list of supported ...
by mdperry
Fri Mar 01, 2013 5:03 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Digital POT Driving a LED with SPI
Replies: 4
Views: 2110

Re: Digital POT Driving a LED with SPI

I got it working in FPC/Lazarus using the wiringPi library. Below is my sample code. I also had to run a wire between the MISO and the MOSI pins on my Pi to get it to work.

New diagram:
http://www.kymark.com/spiled2.jpg

Code is available here:
http://www.kymark.com/spitest.tar.gz
by mdperry
Tue Feb 26, 2013 1:56 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Digital POT Driving a LED with SPI
Replies: 4
Views: 2110

Re: Digital POT Driving a LED with SPI

I think the basic logic of the wiring is OK, but when I look at the data sheet the maximum wiper current is supposed to be 1mA which means driving the LED directly is going to be very limited. You would need an analog buffer between the chip and the LED if you wanted to get a decent amount of LED c...
by mdperry
Sat Feb 23, 2013 6:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Digital POT Driving a LED with SPI
Replies: 4
Views: 2110

Digital POT Driving a LED with SPI

I am setting up a test project where I am using a digital potentiometer to change the intensity of a LED light. I am new to electronics for the most part so was looking for a little direction. I have spent a fair amount of time reading the datasheet for my chip and searching the message board and th...
by mdperry
Wed Feb 13, 2013 4:25 am
Forum: Other languages
Topic: Detecting a button press with Lazarus
Replies: 12
Views: 2149

Re: Detecting a button press with Lazarus

I zipped up a copy of my project and put it at http://www.kymark.com/laz-gpio-test.tar.gz. I was not able to attach it to this post for some reason. In any case, I hope it helps and let me know if you have any questions. I am by no means an expert but I have spent a lot of time trying to make it wor...
by mdperry
Sun Feb 10, 2013 1:51 am
Forum: Other languages
Topic: Detecting a button press with Lazarus
Replies: 12
Views: 2149

Re: Detecting a button press with Lazarus

I am using Raspbian. It definitely took some tweaking to get things working. The one big one is that you have to run the Lazarus with elevated privileges or it will not work. I do that by launching Lazarus from a terminal:

Code: Select all

sudo lazarus-ide

.
by mdperry
Sat Feb 09, 2013 3:47 am
Forum: Other languages
Topic: Detecting a button press with Lazarus
Replies: 12
Views: 2149

Re: Detecting a button press with Lazarus

I finally got it! I realized I was using a wrapper for a very old version of wiringPi. I ran the wiringPi.h file through the h2pas tool and replaced the wrapper I was using with the generated file. After a few tweaks and some judicious commenting out of lines that would not compile, it works!!! (yes...
by mdperry
Sat Feb 09, 2013 2:53 am
Forum: Other languages
Topic: Detecting a button press with Lazarus
Replies: 12
Views: 2149

Re: Detecting a button press with Lazarus

OK, so I think I have the pin issue sorted out thanks to Gordon's help. If anyone has a simple but clear explanation (or a link) about why this button has to be wired to certain pins only, I am all ears. Anyway after wiring it up correctly the digitalRead call in my code still returns a 1 when the s...
by mdperry
Fri Feb 08, 2013 11:13 am
Forum: Other languages
Topic: Detecting a button press with Lazarus
Replies: 12
Views: 2149

Re: Detecting a button press with Lazarus

I forgot to add that bit of code which is called when my form is initialized. Here is what I am using: if wiringPiSetup <> -1 then //do some setup stuff else ShowMessage ('Total Nuclear Meltdown'); I have the 512MB version Pi with 2 USB ports and ethernet. I think that means this is the Rev 2 board....
by mdperry
Fri Feb 08, 2013 5:28 am
Forum: Other languages
Topic: Detecting a button press with Lazarus
Replies: 12
Views: 2149

Detecting a button press with Lazarus

I am working on a simple project to detect a button press in a gui application in Lazarus. I have the wiringPi library and Lazarus wrapper set up and I know they work because I can turn on and off a led programmatically. The button circuit is very simple. I have a wire from GPIO pin 3 (wiringPi pin ...
by mdperry
Mon Dec 31, 2012 10:32 pm
Forum: Networking and servers
Topic: Raspberry Pi as a NAS
Replies: 1
Views: 3969

Raspberry Pi as a NAS

I have a DNS-323 NAS on my home network that I use only for serving files. I have two 1 TB disks in a RAID 1 array. The specs for the DNS-323 are: CPU = 500 Mhz Marvell 88F5181 proprietary Feroceon ARM CPU RAM = 64MB IDE controller = Marvell 88X7042 LAN = Marvell 88E1111 I have been thinking that a ...

Go to advanced search