Go to advanced search

by scootergarrett
Tue May 28, 2019 12:34 pm
Forum: C/C++
Topic: printf issue on raspbian
Replies: 9
Views: 1475

Re: printf issue on raspbian

I'm thinking you need to do a "screen flush".
by scootergarrett
Fri Apr 19, 2019 7:00 pm
Forum: Troubleshooting
Topic: VNC wont start untill I move mouse pi Zero only
Replies: 2
Views: 104

VNC wont start untill I move mouse pi Zero only

I'm trying to run a pi zero headless. But the VNC wont start up until I move the mouse. I can see this when I connect it to a screen and mouse. It works fine on the Pi3B+. This didn't seem to be a problem until I updated. Any thoughts?
by scootergarrett
Sat Jan 05, 2019 9:50 pm
Forum: C/C++
Topic: Pi Plates C functions
Replies: 0
Views: 355

Pi Plates C functions

With some help from https://www.raspberrypi.org/forums/viewtopic.php?f=33&t=229685 . I was able to start a library of functions to run the DAC and the Relay pi plates https://pi-plates.com/ . I went through the python code an translated into basic C. The functions have the same form (argument order)...
by scootergarrett
Wed Dec 26, 2018 8:56 pm
Forum: C/C++
Topic: Wirring pi and SPI communication
Replies: 16
Views: 1672

Re: Wirring pi and SPI communication

fbe I think you got it. when I use SPIComPort = wiringPiSPISetup(1, 250000); with wiringPiSPIDataRW(1, Send, SendCount); its behaving as I would expect. Now that I take 2 seconds and look that the first argument in wiringPiSPIDataRW is 'channel'. Its intresting that it was working with: SPIComPort =...
by scootergarrett
Wed Dec 26, 2018 7:42 pm
Forum: C/C++
Topic: Wirring pi and SPI communication
Replies: 16
Views: 1672

Re: Wirring pi and SPI communication

Thanks for confirming.
by scootergarrett
Wed Dec 26, 2018 5:40 pm
Forum: C/C++
Topic: Wirring pi and SPI communication
Replies: 16
Views: 1672

Re: Wirring pi and SPI communication

I made a torn down program with the same behavior // PlateDemo.c // This program is for testing the raspberry pi SPI control // more specificity the setting up which chip select pin to use (CE0 or CE1) #include <stdio.h> /// IO functions #include <time.h> /// Used for delay function #include <wiring...
by scootergarrett
Wed Dec 26, 2018 4:24 pm
Forum: C/C++
Topic: Wirring pi and SPI communication
Replies: 16
Views: 1672

Re: Wirring pi and SPI communication

I get the same behavior using a pi zero
by scootergarrett
Mon Dec 24, 2018 9:37 pm
Forum: C/C++
Topic: Wirring pi and SPI communication
Replies: 16
Views: 1672

Re: Wirring pi and SPI communication

So I have unplugged the pi plate and directly plugged in a logic analyzer (https://www.sparkfun.com/products/13929). If I use: com = wiringPiSPISetup(0, 250000); ... wiringPiSPIDataRW(com, arg, 4); I see data as expected (clock, chip select at CE0, and MOSI) but if I change to: com = wiringPiSPISetu...
by scootergarrett
Mon Dec 24, 2018 8:47 pm
Forum: C/C++
Topic: Wirring pi and SPI communication
Replies: 16
Views: 1672

Re: Wirring pi and SPI communication

Yes you are correct com = wiringPiSPISetup(1, 250000); doesn't use the SPI1, but it also doesn't seem to change the chip select from CE0 to CE1, in fact when I probe around I don't see anything. The wiring pi documentation (http://wiringpi.com/reference/spi-library/) call that field 'channel' int wi...
by scootergarrett
Mon Dec 24, 2018 8:22 pm
Forum: C/C++
Topic: Wirring pi and SPI communication
Replies: 16
Views: 1672

Re: Wirring pi and SPI communication

There seem to be 2 completely different SPI's. SPI0 and SPI0. So 0 indicates I'm using SPI0
by scootergarrett
Mon Dec 24, 2018 7:59 pm
Forum: C/C++
Topic: Wirring pi and SPI communication
Replies: 16
Views: 1672

Wirring pi and SPI communication

I'm trying to rewrite the Python functions for the pi plates (https://pi-plates.com/) I can probe at the SPI pins and see what is happening with working python code. The working python code seems to use CE1 for the chip select. When I try to recreate the SPI calls using the wiringpi libraries it use...
by scootergarrett
Mon Dec 24, 2018 7:43 pm
Forum: Python
Topic: View python import code
Replies: 3
Views: 671

Re: View python import code

Thanks that helped a lot. But I'm still a little unsure what is happining when at this line import piplates.DAQCplate as DAQC I think it is doing a littl bit more than just this: GPIO.setmode(GPIO.BCM) GPIObaseADDR=8 ppFRAME = 25 ppINT = 22 GPIO.setup(ppFRAME,GPIO.OUT) GPIO.setup(ppINT, GPIO.IN, pul...
by scootergarrett
Sun Dec 23, 2018 10:23 pm
Forum: Python
Topic: View python import code
Replies: 3
Views: 671

View python import code

So I'm trying to dissect the python code used with the pi plates (https://pi-plates.com/). I'm able to use the inspect library to view the code for functions e.g: print inspect.getsource(DAQC.getDINbit) results def getDINbit(addr,bit): VerifyADDR(addr) VerifyDINchannel(bit) resp=ppCMD(addr,0x20,bit,...
by scootergarrett
Sat Jun 30, 2018 12:06 pm
Forum: Networking and servers
Topic: Mounting shared network folder with mount R/W access
Replies: 5
Views: 1010

Re: Mounting shared network folder with mount R/W access

Nice. adding 'vers=1.0' worked. Note that after the password there is a comma then no space

Code: Select all

sudo mount.cifs //<IP>/public /home/pi/Shared/ -o username=pi,password=<PW>,vers=1.0
now I need to make sure it works on all older pies

Thanks so much
by scootergarrett
Sat Jun 30, 2018 11:12 am
Forum: Networking and servers
Topic: Mounting shared network folder with mount R/W access
Replies: 5
Views: 1010

Re: Mounting shared network folder with mount R/W access

The mount command I'm using is: sudo mount.cifs //<IP>/public /home/pi/Shared/ -o user=pi,password=<PW> where <IP> is the IP address of the server pi, and <PW> is the samba password. In the future I may want to use a windows computer. but for my understanding the sshfs would act just like a networke...
by scootergarrett
Sat Jun 30, 2018 1:04 am
Forum: Networking and servers
Topic: Mounting shared network folder with mount R/W access
Replies: 5
Views: 1010

Mounting shared network folder with mount R/W access

I have a raspberry pi set up sharing a network folder using samba. I can access files via my (Linux) lap top and used to access from other pi's via the mount command. I got the new Pi 3B+ and had to update Jessie, now when I mount the folder I only have read access. I doubt its the pi with the share...
by scootergarrett
Tue May 01, 2018 12:33 am
Forum: Troubleshooting
Topic: Pi zero W as wifi host
Replies: 0
Views: 160

Pi zero W as wifi host

In the past I have used this tutorial https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point/overview to get the pi set up as a wifi host. I worked through it on a pi 3. But now when I put the card into a pi zero W it shows up as a wifi network but I can't connecto to it. I have...
by scootergarrett
Sat Apr 07, 2018 3:33 pm
Forum: C/C++
Topic: Codeblocks Crashes
Replies: 15
Views: 3143

Codeblocks Crashes

I just updated Raspbian so i can work with the New Pi3B+. to install code::blocks I used sudo apt-get install codeblocks it installed code:Blocks 16.01, which crashes all the time e.g. if I scroll to fast, some time just pasting code exc. Is there a way to download a pervious version? I have tried: ...
by scootergarrett
Thu Jan 04, 2018 11:43 am
Forum: Beginners
Topic: Pi Zero W and Ultimate GPS UART
Replies: 1
Views: 1099

Re: Pi Zero W and Ultimate GPS UART

I just had this problem. GPS was working on Pi Zero, then upgrade to Pi Zero W and it stopped working.
try using '/dev/ttyS0' replacing 'ttyAMA0'
I think when on board wireless is added there is some conflict with AMA0, I had a similar problem with the pi 3.
Hope this helps
by scootergarrett
Sat Sep 16, 2017 6:18 pm
Forum: Beginners
Topic: Funky screen resolution
Replies: 3
Views: 596

Re: Funky screen resolution

I did the 'sudo apt-get update && sudo apt-get dist-upgrade -y' and same issue. if I force the reolution to be 1336x768 (to fit with PiTop) the screen looks fine from VNC and on the PiTop. But not just the one Pi Zero with camera with this one samsung screen (the other Pi Zero works as expected) . W...
by scootergarrett
Thu Sep 14, 2017 11:08 am
Forum: Beginners
Topic: Funky screen resolution
Replies: 3
Views: 596

Re: Funky screen resolution

The problem only happens when I plug this perticular pi zero into one monitor. If I plug it into my TV (still HDMI) the screen works fine. I put a new immage of jessie on a fresh card and it still happens, wiht just the one Pi and monitor.
by scootergarrett
Tue Sep 12, 2017 1:59 pm
Forum: Beginners
Topic: Funky screen resolution
Replies: 3
Views: 596

Funky screen resolution

I am currently using two raspberry pi zeros (one with a camera port, the other without) with the same SD card (not at the same time obviously) running Jessie. When I plug one in everything work as expected, but the other one the screen resolution is way off; it looks bad, only ~6 icons fit on the sc...
by scootergarrett
Tue Apr 04, 2017 12:42 am
Forum: Beginners
Topic: Powering a Pi Zero in a car
Replies: 8
Views: 5274

Re: Powering a Pi Zero in a car

I don't use a fancy SD card. Could it be the way the power fluctuates when the car is started? i.e. when you turn the key it turn on until the key is in the start position the, then it cuts all the power. I wonder if they make a USB power supply with a large capacitor so it wont send power until its...
by scootergarrett
Mon Apr 03, 2017 11:28 pm
Forum: Beginners
Topic: Powering a Pi Zero in a car
Replies: 8
Views: 5274

Re: Powering a Pi Zero in a car

I have a similar project in my car now. I just got a 12cigarette lighter to USB.my car only sends power to it when it is on, so it powers up when i start the car. and kills the power when I turn it off
by scootergarrett
Sun Apr 02, 2017 2:14 pm
Forum: Beginners
Topic: Korg nano key
Replies: 2
Views: 706

Re: Korg nano key

I'm having issues with getting the dependency pyalsa. I download the .zip from https://github.com/physacco/pyalsa and extract it but I don't know what to do to install it.

Go to advanced search