Go to advanced search

by nopnop2002
Sun Nov 10, 2019 10:59 pm
Forum: Troubleshooting
Topic: pulseaudio start on boot?
Replies: 12
Views: 27939

Re: pulseaudio start on boot?

I tried this.
It work fine.


[autoConnect.sh]

Code: Select all

#!/bin/bash
sudo -u pi pulseaudio --start << EOF
raspberry
EOF

sudo -u pi bluetoothctl << EOF
raspberry
connect 54:14:8E:38:A8:28
EOF

[crontab -l]

Code: Select all

@reboot sleep 15 && /home/pi/autoConnect.sh
by nopnop2002
Fri Jul 01, 2016 10:01 pm
Forum: Troubleshooting
Topic: mcp3002.c and mcp3004.c
Replies: 10
Views: 3235

Re: mcp3002.c and mcp3004.c

I checked DataSheet of mcp3002.
mcp3002 is Dual Channel 10-Bit A/D Converter.
I think the following code is right.
return ((spiData [1] << 8) | spiData [2]) & 0x3FF ;

EDIT
return ((spiData [0] << 8) | spiData [1]) & 0x3FF ;
by nopnop2002
Fri Jun 19, 2015 9:12 pm
Forum: For sale
Topic: 3.5 Inch TFT Display for Raspberry Pi
Replies: 45
Views: 101173

Re: 3.5 Inch TFT Display for Raspberry Pi

hello.
I'd like to use this module without fbtft driver.
I'd like to know the model number of the tft controller chip used by this module.
by nopnop2002
Mon Jun 08, 2015 11:08 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 2.8" tft lcd shield
Replies: 5
Views: 1482

Re: 2.8" tft lcd shield

This module is designed for Arduino.
8Bit parallel communication is possible by this module.
Digital output of Arduino is 5V.
HC245 is mounted on this module as Level Shifter (from 5V to 3.3V).
When using it in Raspberry, you have to output 5V digitally.
by nopnop2002
Sun Jun 07, 2015 11:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to connect a Arduino Touchscreen to the Raspberry PI
Replies: 12
Views: 5724

Re: How to connect a Arduino Touchscreen to the Raspberry PI

This TFT module is designed for Arduino, so I think it has a level shifter built-in in the interior. Therefore when using it in Raspberry, it's necessary to output 5V in digitalWrite. And controller of this module isn't ili9325. Controller of this module is ili9341. TFT LCD test - Read of the ID reg...
by nopnop2002
Sun Apr 05, 2015 2:11 am
Forum: Troubleshooting
Topic: wifi not working AGAIN
Replies: 27
Views: 5971

Re: wifi not working AGAIN

You need to download a different version of the driver mt7601-3.18.7-755.tar.gz . The driver you tried to use mt7601-3.18.7-v7-755.tar.gz is for the Pi B2. The Pi B2 drivers include an extra " -v7 " in the name. Try this instead wget https://dl.dropboxusercontent.com/u/80256631/mt7601-3.18.7-755.ta...
by nopnop2002
Fri Apr 03, 2015 10:40 pm
Forum: Troubleshooting
Topic: wifi not working AGAIN
Replies: 27
Views: 5971

Re: wifi not working AGAIN

also did a uname -a as MrEngman asked last time it is pi@raspberrypi ~ $ uname -a Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l GNU/Linux To download and install the driver try this wget https://dl.dropboxusercontent.com/u/80256631/mt7601-3.18.7-v7-755.tar.gz tar...
by nopnop2002
Thu Apr 02, 2015 1:33 pm
Forum: Troubleshooting
Topic: wifi not working AGAIN
Replies: 27
Views: 5971

Re: wifi not working AGAIN

The following procedure is needed to work this dongle in firmware of 3.18.X edition. Download 2015-01-31-raspbian.img from the following page and install cleanly. http://downloads.raspberrypi.org/raspbian/images/raspbian-2015-02-02/ $ sudo apt-get update $ sudo apt-get upgrade $ sudo reboot Down gra...
by nopnop2002
Sat Nov 22, 2014 12:51 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Physicaly power off USB device from GPIO
Replies: 3
Views: 5237

Re: Physicaly power off USB device from GPIO

Hello. Today's Japan is a very good fine autumn day. Then, the following reports will be consulted. http://electronics.stackexchange.com/questions/103678/proper-usage-of-a-mosfet-to-control-usb https://forum.openwrt.org/viewtopic.php?id=49012 I don't have 3g USB dongle. But I can control the power s...
by nopnop2002
Sun Nov 16, 2014 10:37 pm
Forum: Python
Topic: USB Fan
Replies: 9
Views: 3678

Re: USB Fan

I tried Portable 2 AA Battery USB Power Charger. I bought this at $1 shop in Japan. When connecting GND and GPIO of Raspberry to the change of AA battery, USB power has been controlled by ON/OFF of GPIO. Please refer to the following. http://www.raspberrypi.org/forums/viewtopic.php?f=44&t=91635&p=64...
by nopnop2002
Sun Nov 16, 2014 2:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Physicaly power off USB device from GPIO
Replies: 3
Views: 5237

Re: Physicaly power off USB device from GPIO

Hello I tried Portable 2 AA Battery USB Power Charger. I bought this at $1 shop in Japan. I connected GND and GPIO of the raspberry instead of AA battery. I have controlled USB power by ON/OFF of GPIO. And Raspberry Pi Type A can be started with 2 AA batteries. Postscript I reconstructed Portable 2 ...
by nopnop2002
Wed Sep 17, 2014 1:19 pm
Forum: Python
Topic: TLC5940
Replies: 13
Views: 5664

Re: TLC5940

I indicate notes.

IREF(Pin#20) connects with GND through resistance of 2Kohm.
About 20 mA should flow as a reverse current.

DCPROG(Pin#19) connects 3.3V.
Not use EEPROM.

VCC(Pin#21) connects 3.3V.

GND(Pin#22) connects GND.

I am glad if it becomes helpful.
by nopnop2002
Wed Sep 17, 2014 1:01 pm
Forum: Python
Topic: TLC5940
Replies: 13
Views: 5664

Re: TLC5940

Since I am a Japanese, I am not good at English. Therefore, the problem may already be solved. I know how to control LED using TLC5940. I show the sample code using the C language below. This sample drives 3 Digits 8 segment LED of Ancode Common. The wire connection is as follows. ------------------...
by nopnop2002
Sat Nov 23, 2013 11:29 pm
Forum: Troubleshooting
Topic: mcp3002.c and mcp3004.c
Replies: 10
Views: 3235

Re: mcp3002.c and mcp3004.c

Thank you.
I challenge a bug report.
by nopnop2002
Sat Nov 23, 2013 9:32 pm
Forum: Troubleshooting
Topic: mcp3002.c and mcp3004.c
Replies: 10
Views: 3235

Re: mcp3002.c and mcp3004.c

Thank you for your reply.
I am a Japanese.
I am not good at English.
I don't know how to contact a direct code owner using http://github.com by posting a bug report.
by nopnop2002
Sat Nov 23, 2013 5:15 pm
Forum: Troubleshooting
Topic: mcp3002.c and mcp3004.c
Replies: 10
Views: 3235

mcp3002.c and mcp3004.c

Hello.
There is mcp3002.c and mcp3004.c in the wiringPi library.
I found the following codes in mcp3002.c and mcp3004.c.

mcp3002.c
return ((spiData [0] << 7) | (spiData [1] >> 1)) & 0x3FF ;

mcp3004.c
return ((spiData [1] << 8) | spiData [2]) & 0x3FF ;

Isn't mpc3002.c wrong??
by nopnop2002
Thu Nov 21, 2013 11:17 pm
Forum: C/C++
Topic: Issue with wiringPi and MCP23017
Replies: 2
Views: 2596

Re: Issue with wiringPi and MCP23017

Would you exhibit all the source codes?
by nopnop2002
Sat Sep 28, 2013 11:46 am
Forum: General discussion
Topic: BH1750FVI
Replies: 5
Views: 10898

Re: BH1750FVI

I have C code to read out a BH1750FVI light sensor. I think that it is probably right. /* Sample code for the BH1750 Light sensor for Raspberry Pi Connection: VCC-5v (Raspberry pin 1) GND-GND(Raspberry pin 6) SCL-SCL(Raspberry pin 5) SDA-SDA(Raspberry pin 3) ADD-NC or GND */ #include <stdio.h> #incl...

Go to advanced search