Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-30-2012, 10:13 AM   #16
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by mmatej View Post
Thanks. Do yo know how to control LEDs using any similiar method?
There is an LED diagnostic in u-boot bist (using the serial port) that can flash out Morse code "okay" or "fail" on the LEDs. You could look in the u-boot source code for that.

Direct control of hardware needs to be in kernel mode, so would either need a custom loadable kernel module, or a custom kernel loaded with kexec (unless you can find an ioctl() call to do what you want).

I would like to output PWM sound on the LEDs (stereo using the yellow and green LEDs). You could recover the audio with color filters and a pair of photosensors feeding an audio amplifier (powered computer speakers?).

Of course, we can also use a USB OTG sound adapter, with appropriate hardware. I ordered some $1.35USD devices from an ebay store to use on a K4 (when I get some time). You can buy USB host mode cables for less thatn $1USD, or you can just cut a microUSB plug from a cord and solder it into the USB sound adapter.

Or you could use "WiFi Sound" (pipe raw sound to a host PC over WiFi).
geekmaster is offline   Reply With Quote
Old 07-30-2012, 10:50 AM   #17
mmatej
Connoisseur
mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.
 
Posts: 91
Karma: 14730
Join Date: Jun 2012
Device: none
Quote:
Originally Posted by geekmaster View Post
There is an LED diagnostic in u-boot bist (using the serial port) that can flash out Morse code "okay" or "fail" on the LEDs. You could look in the u-boot source code for that.

Direct control of hardware needs to be in kernel mode, so would either need a custom loadable kernel module, or a custom kernel loaded with kexec (unless you can find an ioctl() call to do what you want).

I would like to output PWM sound on the LEDs (stereo using the yellow and green LEDs). You could recover the audio with color filters and a pair of photosensors feeding an audio amplifier (powered computer speakers?).

Of course, we can also use a USB OTG sound adapter, with appropriate hardware. I ordered some $1.35USD devices from an ebay store to use on a K4 (when I get some time). You can buy USB host mode cables for less thatn $1USD, or you can just cut a microUSB plug from a cord and solder it into the USB sound adapter.

Or you could use "WiFi Sound" (pipe raw sound to a host PC over WiFi).
There is also LED diagnostic in system diags, which can blink the LEDs, so it must be possible to control them within userspace. Stupid that they haven't released diags prog source. Do you think if we asked them, they would provide it?
That idea with PWM on LEDs isn't bad, but LEDs have also some time to turn off completely (but I don't know very much about transfer via light system).
Have somebody tested that host mode? I don't know how to switch it so.
mmatej is offline   Reply With Quote
Old 07-30-2012, 11:21 AM   #18
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by mmatej View Post
There is also LED diagnostic in system diags, which can blink the LEDs, so it must be possible to control them within userspace. Stupid that they haven't released diags prog source. Do you think if we asked them, they would provide it?
That idea with PWM on LEDs isn't bad, but LEDs have also some time to turn off completely (but I don't know very much about transfer via light system).
Have somebody tested that host mode? I don't know how to switch it so.
Diags is not GPL, so probably not...

Incandescent bulbs take awhile to turn off because the filament needs to cool. Fluorescent bulbs take awhile to turn off because the phosphor had a decay rate. Some white LEDs contain a phosphor that is activated by an internal blue LED, so those white LEDs are actually a type of fluorescent light.

Ordinary LEDs turn on and off fast enough to send Radio Frequencies over them, so they would certainly be good enough for audio use.
geekmaster is offline   Reply With Quote
Old 07-30-2012, 02:41 PM   #19
mmatej
Connoisseur
mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.
 
Posts: 91
Karma: 14730
Join Date: Jun 2012
Device: none
Quote:
Originally Posted by geekmaster View Post
Diags is not GPL, so probably not...

Incandescent bulbs take awhile to turn off because the filament needs to cool. Fluorescent bulbs take awhile to turn off because the phosphor had a decay rate. Some white LEDs contain a phosphor that is activated by an internal blue LED, so those white LEDs are actually a type of fluorescent light.

Ordinary LEDs turn on and off fast enough to send Radio Frequencies over them, so they would certainly be good enough for audio use.
Really? I've been always imagining that they are like small lamps.. (after all, they have small filament wire which actually emits the light, or not??)
mmatej is offline   Reply With Quote
Old 07-30-2012, 02:58 PM   #20
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by mmatej View Post
Really? I've been always imagining that they are like small lamps.. (after all, they have small filament wire which actually emits the light, or not??)
Imagination guides your research, but does not replace it.
geekmaster is offline   Reply With Quote
Old 07-30-2012, 03:07 PM   #21
mmatej
Connoisseur
mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.mmatej is less competitive than you.
 
Posts: 91
Karma: 14730
Join Date: Jun 2012
Device: none
Quote:
Originally Posted by geekmaster View Post
Imagination guides your research, but does not replace it.
Yeah, next time I will verify my thoughts if I am not sure!
mmatej is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
eReader accessory that needs to be developed... dhume01 General Discussions 17 02-04-2012 11:41 PM
need accessory advice iakovl Nook Color & Nook Tablet 1 11-28-2011 07:35 AM
DR accessory list Grimulkan iRex 42 09-22-2011 04:09 PM
Kindle Accessory Site webdevgirl Amazon Kindle 8 07-09-2009 04:28 AM


All times are GMT -4. The time now is 06:45 PM.


MobileRead.com is a privately owned, operated and funded community.