tag:blogger.com,1999:blog-45557441269693495852024-03-06T06:32:25.131+02:00Onion and garlicOnionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.comBlogger231125tag:blogger.com,1999:blog-4555744126969349585.post-24016087535031471712023-03-01T23:21:00.000+02:002023-03-01T23:21:02.360+02:00Pine64 Ox64 RISC-V SBC<p> After a bit of fiddling with serial connection and flashing all the stuff. It boots.</p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHsrlKMCjggOJf_v75tDFoIU543C0OGkhqt6CWvsNMpzFxupazDDjGjK8SQqTIl028ik8amXDu5Z5aRADJ-CWd-Pzom2_bBJ07FeWXt2_-N4qhyvZWI2KRanqT6qA8t-1lJbhCT9GfGsA3Qxt6-p5jP47mK_C7pZjbqkrgUmFCBYlEIAmMdUKaKSR2Kg/s1920/pine64-ox64-fhd.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="736" data-original-width="1920" height="154" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHsrlKMCjggOJf_v75tDFoIU543C0OGkhqt6CWvsNMpzFxupazDDjGjK8SQqTIl028ik8amXDu5Z5aRADJ-CWd-Pzom2_bBJ07FeWXt2_-N4qhyvZWI2KRanqT6qA8t-1lJbhCT9GfGsA3Qxt6-p5jP47mK_C7pZjbqkrgUmFCBYlEIAmMdUKaKSR2Kg/w400-h154/pine64-ox64-fhd.jpg" width="400" /></a></div><p>It does feel a bit strange that you can now have <a href="https://wiki.pine64.org/wiki/Ox64">a 64-bit, 64MB computer that fits on a breadboard</a>. That runs full Linux.</p><p>My first 64-bit system was a Aspen Alpine Alpha board, AT format. 275Mhz Alpha CPU and also 64MB of memory. That ran full Linux (a probably still do. It should still work)<br /></p><p>Anyway, boot log from serial console for the Ox64 below:<br /></p>
<pre>[I][] ____ ____ __ __ _
[I][] / __ \ | _ \ / _|/ _| | |
[I][] | | | |_ __ ___ _ __ | |_) | ___ _ _| |_| |_ __ _| | ___
[I][] | | | | '_ \ / _ \ '_ \| _ < / _ \| | | | _| _/ _` | |/ _ \
[I][] | |__| | |_) | __/ | | | |_) | (_) | |_| | | | || (_| | | (_) |
[I][] \____/| .__/ \___|_| |_|____/ \___/ \__,_|_| |_| \__,_|_|\___/
[I][] | |
[I][] |_|
[I][]
[I][] Powered by BouffaloLab
[I][] Build:09:51:53,Feb 19 2023
[I][] Copyright (c) 2023 OpenBouffalo team
[I][] Copyright (c) 2022 Bouffalolab team
[I][] dynamic memory init success,heap s[I][LowLoad] D0 start...
[I][LowLoad] low_load start...
[I][LowLoad] Section dtb(1) - Start 0x58080100, Size 3335
[I][LowLoad] Copying DTB to 0x51ff8000...0x51ff8d07
[I][LowLoad] Done!
[I][LowLoad] Section OpenSBI(2) - Start 0x58090100, Size 109864
[I][LowLoad] Copying OpenSBI to 0x3ef80000...0x3ef9ad28
[I][LowLoad] Done!
[I][LowLoad] Section Kernel(3) - Start 0x580b0100, Size 3933429
[I][LowLoad] Uncompressing Kernel to 0x50000000...
[I][LowLoad] Done!
[I][LowLoad] CRC: 00000000
[I][LowLoad] load time: 449038 us
[I][LowLoad] Setting PMP
[I][LowLoad] Booting OpenSBI at 0x000000003ef80000 with DTB at 0x51ff8000
OpenSBI v1.2
____ _____ ____ _____
/ __ \ / ____| _ \_ _|
| | | |_ __ ___ _ __ | (___ | |_) || |
| | | | '_ \ / _ \ '_ \ \___ \| _ < | |
| |__| | |_) | __/ | | |____) | |_) || |_
\____/| .__/ \___|_| |_|_____/|____/_____|
| |
|_|
Platform Name : Pine64 Ox64
Platform Features : medeleg
Platform HART Count : 1
Platform IPI Device : aclint-mswi
Platform Timer Device : aclint-mtimer @ 1000000Hz
Platform Console Device : bflb_uart
Platform HSM Device : ---
Platform PMU Device : ---
Platform Reboot Device : ---
Platform Shutdown Device : ---
Firmware Base : 0x3ef80000
Firmware Size : 200 KB
Runtime SBI Version : 1.0
Domain0 Name : root
Domain0 Boot HART : 0
Domain0 HARTs : 0*
Domain0 Region00 : 0x00000000e4008000-0x00000000e400bfff (I)
Domain0 Region01 : 0x00000000e4000000-0x00000000e4007fff (I)
Domain0 Region02 : 0x000000003ef80000-0x000000003efbffff ()
Domain0 Region03 : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address : 0x0000000050000000
Domain0 Next Arg1 : 0x0000000051ff8000
Domain0 Next Mode : S-mode
Domain0 SysReset : yes
Boot HART ID : 0
Boot HART Domain : root
Boot HART Priv Version : v1.11
Boot HART Base ISA : rv64imafdcvx
Boot HART ISA Extensions : time
Boot HART PMP Count : 8
Boot HART PMP Granularity : 4096
Boot HART PMP Address Bits: 38
Boot HART MHPM Count : 8
Boot HART MIDELEG : 0x0000000000000222
Boot HART MEDELEG : 0x000000000000b109
[ 0.000000] Linux version 6.2.0-rc8 (runner@fv-az461-503) (riscv64-unknown-linux-gnu-gcc (Xuantie-900 linux-5.10.4 glibc gcc Toolchain V2.6.1 B-20220906) 10.2.0, GNU ld (GNU Binutils) 2.35) #1 Sun Feb 19 09:21:12 UTC 2023
[ 0.000000] Machine model: Pine64 Ox64
[ 0.000000] earlycon: sbi0 at I/O port 0x0 (options '')
[ 0.000000] printk: bootconsole [sbi0] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000050000000-0x0000000053ffffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000050000000-0x0000000053ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000050000000-0x0000000053ffffff]
[ 0.000000] SBI specification v1.0 detected
[ 0.000000] SBI implementation ID=0x1 Version=0x10002
[ 0.000000] SBI TIME extension detected
[ 0.000000] SBI IPI extension detected
[ 0.000000] SBI RFENCE extension detected
[ 0.000000] riscv: base ISA extensions acdfim
[ 0.000000] riscv: ELF capabilities acdfim
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16160
[ 0.000000] Kernel command line: console=ttyS0,2000000 loglevel=8 earlycon=sbi root=PARTLABEL=rootfs rootwait rootfstype=ext4
[ 0.000000] Dentry cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 50136K/65536K available (3941K kernel code, 4584K rwdata, 2048K rodata, 2118K init, 301K bss, 15400K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] riscv-intc: 64 local interrupts mapped
[ 0.000000] plic: interrupt-controller@e0000000: mapped 64 interrupts with 1 handlers for 2 contexts.
[ 0.000000] riscv-timer: riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[ 0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 3526361616960 ns
[ 0.000002] sched_clock: 64 bits at 1000kHz, resolution 1000ns, wraps every 2199023255500ns
[ 0.000917] Console: colour dummy device 80x25
[ 0.001161] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=4000)
[ 0.001683] pid_max: default: 32768 minimum: 301
[ 0.002394] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.002736] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.007687] cblist_init_generic: Setting adjustable number of callback queues.
[ 0.008005] cblist_init_generic: Setting shift to 0 and lim to 1.
[ 0.008909] ASID allocator using 16 bits (65536 entries)
[ 0.010126] EFI services will not be available.
[ 0.011150] devtmpfs: initialized
[ 0.014636] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.015133] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[ 0.015752] pinctrl core: initialized pinctrl subsystem
[ 0.018300] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.019159] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.019546] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.025099] bflb-ipc 30005000.mailbox: Bouffalo Lab IPC mailbox interrupt controller
[ 0.030226] SCSI subsystem initialized
[ 0.032783] clocksource: Switched to clocksource riscv_clocksource
[ 0.061401] NET: Registered PF_INET protocol family
[ 0.062066] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.064181] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.064619] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.065130] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 0.065541] TCP bind hash table entries: 512 (order: 1, 8192 bytes, linear)
[ 0.065976] TCP: Hash tables configured (established 512 bind 512)
[ 0.066659] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.066994] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.067759] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.070262] workingset: timestamp_bits=62 max_order=14 bucket_order=0
[ 0.072557] NET: Registered PF_ALG protocol family
[ 0.072993] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 0.073339] io scheduler mq-deadline registered
[ 0.073594] io scheduler kyber registered
[ 0.073934] io scheduler bfq registered
[ 0.075116] bflb-gpio-pinctrl 200008c4.pinctrl: No cache defaults, reading back from HW
[ 0.077467] bflb-gpio-pinctrl 200008c4.pinctrl: Bouffalo Lab pinctrl+GPIO(+interrupt) controller - Registered 32 function(s) for 46 pin(s)
[ 0.083320] 30002000.serial: ttyS0 at MMIO 0x30002000 (irq = 2, base_baud = 2500000) is a BFLB UART
[ 0.083799] printk: console [ttyS0] enabled
[ 0.083799] printk: console [ttyS0] enabled
[ 0.084250] printk: bootconsole [sbi0] disabled
[ 0.084250] printk: bootconsole [sbi0] disabled
[ 0.085883] 2000aa00.serial: ttyS1 at MMIO 0x2000aa00 (irq = 3, base_baud = 2500000) is a BFLB UART
[ 0.114568] brd: module loaded
[ 0.131263] loop: module loaded
[ 0.132547] physmap-flash 58500000.xip_flash: physmap platform flash device: [mem 0x58500000-0x588fffff]
[ 0.138427] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[ 0.138922] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <jason zx2c4.com="">. All Rights Reserved.
[ 0.139555] PPP generic driver version 2.4.2
[ 0.140253] PPP BSD Compression module registered
[ 0.140565] PPP Deflate Compression module registered
[ 0.141679] sdhci: Secure Digital Host Controller Interface driver
[ 0.142071] sdhci: Copyright(c) Pierre Ossman
[ 0.142341] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.143649] mmc0 bounce up to 128 segments into one, max segment size 65536 bytes
[ 0.144836] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.145624] bflb-seceng 20004000.seceng: No cache defaults, reading back from HW
[ 0.149132] random: crng init done
[ 0.149379] bflb-seceng 20004000.seceng: Bouffalo Lab Secure Engine
[ 0.150314] riscv-pmu-sbi: SBI PMU extension is available
[ 0.150721] riscv-pmu-sbi: 16 firmware and 10 hardware counters
[ 0.152676] NET: Registered PF_INET6 protocol family
[ 0.155491] Segment Routing with IPv6
[ 0.155860] In-situ OAM (IOAM) with IPv6
[ 0.156294] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 0.158192] NET: Registered PF_PACKET protocol family
[ 0.158580] Key type dns_resolver registered
[ 0.182669] debug_vm_pgtable: [debug_vm_pgtable ]: Validating architecture page table helpers
[ 0.196778] mmc0: SDHCI controller on 20060000.sdhci [20060000.sdhci] using DMA
[ 0.197576] Waiting for root device PARTLABEL=rootfs...
</jason></pre>Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-85299857418728643912022-12-19T22:49:00.000+02:002022-12-19T22:49:04.821+02:00I asked ChatGPT to write a childrens story about coding in C, C++ and Ada<p>Quite cute, I would say :D</p><p><br /></p><h3 style="text-align: left;">Chapter 1: C<br /></h3><p>Once upon a time, there was a nerdy girl named Sophie who loved to play with computers. She was always curious about how they worked, and she loved to tinker with the different software programs on her computer.<br /><br />One day, Sophie's mom told her about a new programming language called C. It was a powerful language that was used to create all sorts of computer programs, from video games to scientific simulations. Sophie was very excited to learn more about C, and she asked her mom to help her get started.<br /><br />Her mom suggested that they start by installing a C compiler on their computer. This would allow Sophie to write and run C programs from the comfort of her own home. Sophie was thrilled at the prospect of creating her own programs, and she eagerly set to work installing the compiler.<br /><br />Once the compiler was installed, Sophie's mom showed her how to write a simple "Hello, World!" program in C. Sophie typed out the code and ran the program, and to her delight, the computer printed out "Hello, World!" on the screen.<br /><br />Sophie was hooked on programming in C, and she spent every free moment tinkering with her computer and learning more about the language. She was determined to become a master programmer, and she knew that with practice and hard work, she could accomplish anything.<br /><br />And so, Sophie's journey as a programmer began. She was excited to see where her new skills would take her, and she knew that with a little bit of nerdy determination, she could accomplish anything she set her mind to.<br /><br /><br /></p><h3 style="text-align: left;">Chapter 2: Variables, booleans and pointers<br /></h3><p>As Sophie continued to learn more about programming in C, she learned about something called "variables." These were like little containers that could hold different pieces of information, like numbers or words. Sophie could use variables to store data and use it in her programs.<br /><br />One day, Sophie's mom asked her to write a program that would calculate the average of a list of numbers. Sophie was excited to try, and she set to work writing her code. She used variables to store each number in the list, and then she added them all up and divided the sum by the number of numbers in the list. When she ran the program, it worked perfectly! Sophie was thrilled with her success.<br /><br />Next, Sophie learned about something called "booleans." These were special variables that could only hold two values: "true" or "false." Sophie learned that she could use booleans to make decisions in her programs. For example, she could use a boolean to check if a number was even or odd. If the number was even, the boolean would be "true," and if the number was odd, the boolean would be "false." Sophie had a lot of fun playing around with booleans and using them to make her programs smarter.<br /><br />Finally, Sophie learned about something called "pointers." These were special variables that could "point" to other variables in a program. Sophie learned that she could use pointers to access and modify variables from different parts of her code. It was a bit tricky to understand at first, but once Sophie got the hang of it, she found that pointers were a really powerful tool for programming in C.<br /><br />Sophie was having a great time learning about programming in C, and she was excited to see where her new skills would take her. She knew that with a little bit of practice and a lot of nerdy determination, she could accomplish anything she set her mind to.<br /><br /></p><h3 style="text-align: left;">Chapter 3: C++ and princesses<br /></h3><p>As Sophie continued to learn more about programming in C, she discovered something called C++. It was a more advanced programming language that added even more powerful features to the C language. Sophie was excited to learn more about C++, and she spent every free moment tinkering with her computer and learning as much as she could.<br /><br />One of the most interesting things about C++ was something called "object-oriented programming." This was a way of writing programs that used "objects" to represent real-world things. Each object could have different "features" or "attributes," like a person's name or a car's color. Sophie thought this was really cool, and she decided to use Disney princesses as her first objects.<br /><br />Sophie created a "Princess" object, and she gave it features like a name, a age, and a favorite color. She then created objects for each of her favorite princesses, like Ariel, Belle, and Cinderella. Each princess object had its own set of features, like Ariel's love of the ocean or Cinderella's glass slippers. Sophie had a lot of fun playing around with her princess objects and seeing how they interacted with each other.<br /><br />As Sophie continued to learn more about C++ and object-oriented programming, she found that she was able to create more and more complex programs. She was thrilled with her progress, and she knew that with a little bit of practice and a lot of nerdy determination, she could accomplish anything she set her mind to.<br /><br /></p><h3 style="text-align: left;">Chapter 4: Discovering Ada<br /></h3><p>As Sophie's love for programming grew, she started to explore more and more languages. One day, she discovered a language called Ada. Ada was a powerful, high-level language that was used to create all sorts of programs, from video games to scientific simulations. Sophie was immediately intrigued by Ada, and she set to work learning as much as she could.<br /><br />One of the things that Sophie loved most about Ada was its emphasis on safety and reliability. Ada was designed to be very strict and precise, which made it great for creating programs that needed to be absolutely rock-solid. Sophie was impressed by the level of care and attention that went into the design of Ada, and she knew that it was a language that she could really sink her teeth into.<br /><br />As Sophie continued to learn more about Ada, she found that she really enjoyed working with it. The syntax was clear and concise, and she found that she could write programs much more quickly and easily in Ada than she could in some of the other languages she had tried.<br /><br />Sophie still loved C and C++, but she found that Ada offered a fresh new perspective on programming. She was excited to see where her new skills would take her, and she knew that with a little bit of nerdy determination, she could accomplish anything she set her mind to.<br /></p>Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-14715540149422367802019-04-10T12:02:00.002+03:002019-04-10T12:02:53.347+03:00Well, that was that RIP BlackBerry 10In a way this is a sad day, I would very much like to continue to use my BlackBerry 10 Z10, it JustWorks(tm) for all the important bits, e-mail, calendar, phone, IM with BBM. QNX, Qt, C++ and Cascades was a joy to code with.<br />
<br />
But, unfortunately the support has gone, no updates, BBM on BB10 is on life support (<a href="https://helpblog.blackberry.com/2018/06/upcoming-changes-to-bbm-consumer-for-bb10-and-bbos" target="_blank">Channels I managed I can't manage anymore</a>), browser hasn't seen an upgrade in ages and services that I could use trough the browser instead of native apps have started to require features that just isn't there.<br />
<br />
So what are the choices then ?<br />
<ul>
<li>iPhone ? Never in a million years.</li>
<li>SailfishOS ? Well, maybe, see next.</li>
<li>Android ? For now. I prepared by getting a Sony XA2 to be able to perhaps move to SailfishOS when it is mature enough, but lets see if/when that happens.</li>
</ul>
I've been slowly getting used to Android, it has the apps, sure, but the polish and integration is just not there. E-mail app sucks, calendar is a mess (no native CalDAV support, like what the fuck??) and most of all I'm going to the miss the Hub. The concept of the Hub is so simple, but extremely powerful.<br />
<br />
After almost 6 years (from summer 2013)! as my primary phone, I'm now saying goodbye to BlackBerry 10.<br />
<br />
<b>Thanks</b> for making an awesome platform BlackBerry, but <b>fuck you</b> for abandoning it and your users.<br />
<br />Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-20942482938397440732018-11-01T11:03:00.003+02:002018-11-01T11:03:52.117+02:00Getting into Android coding, the annoying thingsI finally gave in and started to work on my first ever Android app. I've done some small JavaME things in the past so it was not so bad after all. Not that there aren't plenty things that seems so backwards, silly, idiotic and overly complicated after working on apps for Maemo, Meego, Sailfish OS and BlackBerry 10. Qt, QtQuick and C++ is elegant. This mess with XML files and Java.. not so much.<br />
<br />
But most of all, the Activity states. Like what the fuck where they thinking ? <br />
<br />
<br />
Whoever is the idiot that came up with the i<a href="https://developer.android.com/guide/components/activities/state-changes" target="_blank">diotic Activity state things</a>, do yourself a favor and hit yourself with stick and jump before a train or something.<br />
<br />
Ever heard of multitasking ? Blody Windows 95 on a 486 can multitask better that this crap. Phones have gigabytes of memory, more cores than my home server and it seems impossible to do at simple task like this:<br />
<ol>
<li>Browse Facebook</li>
<li>Open a post</li>
<li>Open a link in the browser</li>
<li>Go back to FACEBOOK AT THE EXACT PLACE WHERE I LEFT IT and the left browser <b>load the page in the background</b> (you now, <i>multitask</i>!)</li>
<li>Nope, Facebook restarts and reloads a random post list, whatever I was reading is nowhere to be seen. And the browser does not load the page in the background as it was paused.</li>
<li>Fuck I hate Android.</li>
</ol>
Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-10324946208540412042018-08-01T15:54:00.001+03:002018-08-01T15:54:57.001+03:00A quick and bad Raspberry Pi 3 32-bit & 64-bit OpenSSL speed testI wanted to make a quick test if there is difference or not as the Pi people keeps telling us that there isn't or not large enough to support a native 64-bit userland.<br />
<br />
And there seems to be, but, this test is very bad in multiple ways. Different versions of just about everything was used (glibc for 32-bit, musl for 64-bit, different gcc versions for building, etc) and also because raspbian is built for armv6 it will loose from the start.<br />
<br />
These are just preliminary finds so take them with a grain of salt. Still, interesting...<br />
<br />
<h4>
OpenSSL</h4>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkR56v3wqa6XOcKVv1BaGqlDgK9KHi7Kcma2_0mUoetK9F6B-ZBGQgl1ESU81bZ4iRownHKaqI7f41UzvZV2by6B75VbjpaM1qKRNB92nkB17Rp3O3JVEcn4rMZaNQbkoJuioV0CpC2TNR/s1600/rpi-64bit-32bit-openssl-hmac.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="431" data-original-width="684" height="251" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkR56v3wqa6XOcKVv1BaGqlDgK9KHi7Kcma2_0mUoetK9F6B-ZBGQgl1ESU81bZ4iRownHKaqI7f41UzvZV2by6B75VbjpaM1qKRNB92nkB17Rp3O3JVEcn4rMZaNQbkoJuioV0CpC2TNR/s400/rpi-64bit-32bit-openssl-hmac.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">OpenSSL hmac(md5) speed test comparing 32-bit and 64-bit build</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoIRCrZoNMqmohjxCn1n6aT-JIPhyphenhyphen3HMi31N3qdzoJMgkbldRex-lki-HHPdBPG6EvpmHSONc2SChYL-ymU0fmerxG53O_0gceoL_1mmH7zUv-RE1wy0XIpKEQ_8TXG1nlcKxAxF4Q7Wlr/s1600/rpi-64bit-32bit-openssl-sha512.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="425" data-original-width="712" height="238" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoIRCrZoNMqmohjxCn1n6aT-JIPhyphenhyphen3HMi31N3qdzoJMgkbldRex-lki-HHPdBPG6EvpmHSONc2SChYL-ymU0fmerxG53O_0gceoL_1mmH7zUv-RE1wy0XIpKEQ_8TXG1nlcKxAxF4Q7Wlr/s400/rpi-64bit-32bit-openssl-sha512.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">OpenSSL sha512 speed test comparing 32-bit and 64-bit builds</td></tr>
</tbody></table>
<br />
<h4>
UnixBench test: </h4>
<br />
whetstone-double<br />
32-bit: MWIPS 1038.823<br />
64-bit: MWIPS 1379.241<br />
<br />
<br />Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-42836998769908995322018-07-31T11:09:00.000+03:002018-07-31T11:09:10.869+03:00Text mode tools for Turku region public transport<div class="field field-name-body field-type-text-with-summary field-label-hidden">
<div class="field-items">
<div class="field-item even">
Quite
often when there is some nice API for something, the obvious
application type seem to be a mobile application or somekind of web
site/app. That is all quite nice and all but sometimes you just need a
simple tool. Probably most Linux (or unix) user spend most of their time
in a terminal so why not make some tiny command line utilities instead ?
My latest little project is all about the command line.<br />
<br />
<a href="https://www.tal.org/projects/tkuftools" target="_blank">Tools to query Turku Region public transport</a> data from the command
line, fast and much more efficient than opening a browser, finding the
site and all that. For now there are two tools:<br />
<ul>
<li><b>tkuftop</b>: for the bike rental system showing real-time statistics about bike availability at the stations.<br />It can also dump rack location the information as CSV and PostGIS
SQL statements for easy import into any system. There is also support
for relaying the information to an MQTT broker. </li>
<li><b>tkufstop</b>: and one for real-time bus stop departure information.</li>
</ul>
These tools are simple and compact, written in C with a little
help from curl and json-c.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3PDF3QYQ4GRxlzT_jbFUv3OR6eWYZufCNjod09UzlpZttCD5kt90xFlhIzu4X8Kc45o5Wehoauq2ISux5Y64Dx2kW1JIMLxMUUyCpemv0RKJzGQXL5msV6ZcMAyXCtTqS3t04okhv9rQr/s1600/tkufstop.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="356" data-original-width="523" height="271" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3PDF3QYQ4GRxlzT_jbFUv3OR6eWYZufCNjod09UzlpZttCD5kt90xFlhIzu4X8Kc45o5Wehoauq2ISux5Y64Dx2kW1JIMLxMUUyCpemv0RKJzGQXL5msV6ZcMAyXCtTqS3t04okhv9rQr/s400/tkufstop.png" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">tkufstop showing departues from stop T9</td></tr>
</tbody></table>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Otoii7QIhRMZ_18eUncrt0RewpVqUKJ-xJRZ2osS4Her6_o0y41hNGte4tiAoIlRxQZPVph8Q85ycbGXKeT65eMVDnJtm9fKYRkArXAxMMFbqI9Hx3PQtjS2s5qcYx2mmqbxIBqQBqFb/s1600/tkufollaritop.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="798" data-original-width="658" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Otoii7QIhRMZ_18eUncrt0RewpVqUKJ-xJRZ2osS4Her6_o0y41hNGte4tiAoIlRxQZPVph8Q85ycbGXKeT65eMVDnJtm9fKYRkArXAxMMFbqI9Hx3PQtjS2s5qcYx2mmqbxIBqQBqFb/s400/tkufollaritop.png" width="328" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">tkuftop showing bike rack availability information</td></tr>
</tbody></table>
<br />
And of course everything is <a href="https://github.com/oniongarlic/tkuftools" target="_blank">open source and available on github</a>.<br />
<br />
<br />
</div>
</div>
</div>
Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-30622323522326755292018-06-06T13:58:00.002+03:002018-06-06T13:58:58.687+03:00Grab H.264 video on Raspberry Pi with gstreamer(More like a note to self this.)<br /><br />Load Video4Linux driver:<br /><br />sudo modprobe bcm2835-v4l2<br /><br />Grab some video into Matroska container:<br /><br />gst-launch-1.0 v4l2src ! video/x-h264,framerate=30/1 ! h264parse ! matroskamux ! filesink location=test.mkv<br />
<br />
In Full HD:<br />
<br />
<br />
gst-launch-1.0 v4l2src !
video/x-h264,width=1920,height=1080,framerate=30/1 ! h264parse !
matroskamux ! filesink location=test.mkv<br /><br /><br />Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-65440239664981704402018-01-20T10:12:00.003+02:002018-01-20T10:12:59.793+02:00cannot verify ftp.drupal.org's certificate, issued by 'CN=GlobalSign Organization Validation CA - SHA256 - G2,O=GlobalSign nv-sa,C=BE'So Drupal modules and releases are behind https these days. That is great for security!<br />
<br />
But trying to download anything with wget leads to:<br />
<pre>WARNING: cannot verify ftp.drupal.org's certificate, issued by 'CN=GlobalSign Organization Validation CA - SHA256 - G2,O=GlobalSign nv-sa,C=BE':
Unable to locally verify the issuer's authority.
</pre>
<br />
<br />
Unfortunately when, for reason or another, you are stuck with an older distribution that hasn't updated their CA certificates for a while you will hit the above when trying to download something with <i>wget</i>.<br />
<br />
Annoying isn't it ?<br />
<br />
And googling around about it leads to nothing. There is no Real(tm) upstream distribution of CAs and it is very poorly documented how you are supposed to do that manually, IMHO.<br />
<br />
The problem is that you are missing "<b>GlobalSign_Root_CA_-_R3.pem</b>" and of course the relevant hash symlink to it "<b>/etc/ssl/certs/062cdee6.0</b>"<br />
<br />
To fix the issues you can copy over the "<b>GlobalSign_Root_CA_-_R3.pem</b>" from a more up to date system (usually in /usr/share/ca-certificates or in /etc/ssl/certs) into <i>/etc/ssl/certs/</i> and then run <i>c_rehash</i> and the you should have:<br />
<br />
<pre>root@xxxxx:/etc/ssl/certs # ls -l /etc/ssl/certs/062cdee6.0
lrwxrwxrwx 1 root root 27 Jan 20 13:14 /etc/ssl/certs/062cdee6.0 -> GlobalSign_Root_CA_-_R3.pem
</pre>
<br />
Now it should work!
Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-46473553950125683292017-12-01T10:19:00.002+02:002017-12-01T10:20:01.179+02:00On Teosto and YouTube block in FinlandThe whole of Finland was just about to strangle Teosto yesterday as YouTube blocked almost all music videos. Teosto is the umbrella copyright mafia here and collects money in different odd ways to the "<a href="http://www.dailymail.co.uk/news/article-5060037/Shakira-dragged-Paradise-Papers-scandal.html" target="_blank">starving" artists</a>... (and collects a nice 4.2 Million for their own salaries...)<br />
<br />
Anyway, what is interesting to think about is what artists are using YouTube for. They have their own channels for promoting their stuff, music videos. These days, as MTV is just playing reality TV and other shite, YouTube is probably the primary place to show these videos.<br />
<br />
Now what is interesting is that YouTube is totally Free, anyone can create a channel and share their stuff. Good quality. Full HD. 4K. 60fps.<br />
<br />
Seeing what I'm getting at ? They get a platform, for free, to distribute high bandwidth content that takes up plenty of space, plenty of bandwidth, power and servers in the thousands. For Free. For marketing their own content. For free.<br />
<br />
Think about that for a second. Even some crappy Finnish artist video with 3-4 million views in Full HD, fully streamed, say a conservative 300MB/view takes a nice ~900TB on bandwidth. And they get this FOR FREE.<br />
<br />
And the fuckers demand money ???!!<br />
<br />
Right.Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-34045429877590133182017-08-01T14:55:00.004+03:002017-08-01T14:55:56.097+03:00A couple of cheap Macintosh SE'sA friend found a bunch of <a href="https://en.wikipedia.org/wiki/Macintosh_SE" target="_blank">Macintosh SE</a>'s at at <a href="http://www.lahdenpaikka.fi/kuluttajapalvelut/patina-kierratysmyymala/" target="_blank">recycling center</a> a while ago (year?) and I was finally able to go and pick them up a couple of weeks ago.<br />
<br />
Two <a href="https://en.wikipedia.org/wiki/Macintosh_SE#Macintosh_SE_FDHD" target="_blank">Macintosh SE FDHD</a> models and three dual DD floppy drive models.<br />
<br />
One of the FDHD has been used as a server, and digging around the drive I was able to find out that they had been used at a school in Lahti in the 1990s.<br />
<br />
Documents where dated around 1994 and some log files said 1996 so they have probably been unused for 20 years or so.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzVJQQaWfCSfSJ4x2unKWgX6RTCyouHt-AOjxPQzUoRajDe2pqOxgKSjqYXLlTYuDU4IH6OVS1AnjIg6loQC6NPntcDBLI5qg_Rx8SvD6DtxZHyfKKF4BVj7nyjASdMpUhPg-LYGeDB3mM/s1600/20170717_155854.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1600" data-original-width="900" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzVJQQaWfCSfSJ4x2unKWgX6RTCyouHt-AOjxPQzUoRajDe2pqOxgKSjqYXLlTYuDU4IH6OVS1AnjIg6loQC6NPntcDBLI5qg_Rx8SvD6DtxZHyfKKF4BVj7nyjASdMpUhPg-LYGeDB3mM/s640/20170717_155854.jpg" width="360" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Apple Macintosh SE</td></tr>
</tbody></table>
I picked them up on the way to our summer cottage, so to be able to test them I grabbed, what I thought to be, a SCSI box with Mac System on it with me.<br />
<br />
Unfortunately my memory had failed me and I took some other systems SCSI disk so I didn't have anything to boot from until I got back home. The server did boot up but directly into AppleShare. And obviously I didn't have any administrator password codes so I couldn't disable it.<br />
<br />
Back home I got the right SCSI disk box connected and everything seems to work just fine.<br />
<br />
You can see the price in the above picture, 10€ :) (And luckily for me I didn't need to pay anything for them, all free :)Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-72290124346489075492017-02-23T11:29:00.001+02:002017-02-23T11:29:10.512+02:00Coding don'ts: enourmous if blocksWhen wading trough other peoples code I find these annoyingly large if structures, especially used inside while/foreach loops that check if some item is ok to process or not.<br />
<br />
Especially in PHP code for some reason or another. It's like people don't know about <i>continue</i>.<br />
<br />
<h3>
Don't do this!</h3>
<pre>foreach ($something as $item) {
if ($item) {
...
.. screenfull of code ..
...
}
}
</pre>
<h3>
Do this instead</h3>
<pre>foreach ($something as $item) {
if (!$item)
continue;
...
.. screenfull of code ..
...
}
</pre>
Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-85016710212588637772016-11-03T14:09:00.000+02:002016-11-03T14:09:09.300+02:00A bit of progress on ScummVM for BB10Got it building and running, there where some funny business with C++ libraries and alsa that for some reason didn't happen under the PlayBook SDK.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrpLCJQGPOMoz7VhJQMqQZdU1AV3b6k8PFx6g4JFNxJTi6gDRlTxC3oRvdGsxETJrIVwyHXp9I2ecYuFoBDp9PGvpnaIsQ3mWdz5WCbRUNUtgH21Z2LjnRH3SyYJXPT66YSdGiP7ug_WuF/s1600/IMG_20161020_233413_edit.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrpLCJQGPOMoz7VhJQMqQZdU1AV3b6k8PFx6g4JFNxJTi6gDRlTxC3oRvdGsxETJrIVwyHXp9I2ecYuFoBDp9PGvpnaIsQ3mWdz5WCbRUNUtgH21Z2LjnRH3SyYJXPT66YSdGiP7ug_WuF/s400/IMG_20161020_233413_edit.jpg" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Indiana Jones and the Fate of Atlantis on BB10</td></tr>
</tbody></table>
Still, needs bit of work on the control side, especially on this small screen trying to point with a finger is quite hard.<br />
<br />
Video of ScummVM running <a href="https://en.wikipedia.org/wiki/Indiana_Jones_and_the_Fate_of_Atlantis" target="_blank">Indiana Jones and the Fate of Atlantis</a> on running on a DevAlpha C (Q10)<br />
<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/HZceQenDqns?rel=0" width="640"></iframe>Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-47233702013863968542016-11-03T13:59:00.005+02:002016-11-03T13:59:57.215+02:00Onkyo receivers, very insecure networked devicesI've been working now awhile on my <a href="https://github.com/oniongarlic/qiscp" target="_blank">Onkyo Qt ISCP library</a> and there is one not so funny thing about the protocol. There is no authentication or authorization whatsoever. So basically if you happen to be on the same network as a networked Onkyo you can do whatever you like.<br />
<br />
From the not-too-bad: Change radio channel, switch input<br />
To the not-so-nice: Turn the volume up as high as it goes, stream something nasty <br />
<br />
Even the device setup web interface is open to everyone.<br />
<br />
So don't put a networked Onkyo on a public IP and keep it on a private network that no outsiders can access.<br />
<br />
<br />Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-88665619640220137982016-08-14T15:00:00.003+03:002016-08-14T15:01:02.726+03:00Gotchas in Drupal, part 1. Date field storage formats.I've been working with Drupal now for about 3 years now. From time to time there are things that are just strange design decisions or just plain stupid.<br />
<br />
One such thing is Date fields, there are a couple of them with no clear documentation (on the Field management page that is, there are if you Google, but who does that?). Anyway, I needed a Date field. The ISO sounded good, pretty much assumed it was just related to the data entry as I was going to feed in a 170000 nodes with date & time field in a easy for machines to parse format.<br />
<br />
<i>How.Wrong.Was.I</i><br />
<br />
Drupal uses, obviously, a SQL database. Meaning that dates, should, obviously be stored in a SQL a DATE, TIME, DATETIME type right ? Oh, no no no.<br />
<br />
What does Drupal do ? Use a <u>varchar</u>.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFS-_J_7ZaFLWcy7fCvwCIwKZPs4bFILSM1lQqAGEOtCEUuPXIrgfmAO7ioJy8_x3E2ow5qJxHELvV0DZO4SvPRwYlIw5BXDdNLMRWebhst8gah8Bnla8Bd7K6-xQWmxaB3EF865FeLwBC/s1600/picard_facepalm.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFS-_J_7ZaFLWcy7fCvwCIwKZPs4bFILSM1lQqAGEOtCEUuPXIrgfmAO7ioJy8_x3E2ow5qJxHELvV0DZO4SvPRwYlIw5BXDdNLMRWebhst8gah8Bnla8Bd7K6-xQWmxaB3EF865FeLwBC/s400/picard_facepalm.jpg" width="400" /></a></div>
<br />
No wonder searching, by date ranges, on my collection of 170000 nodes was just a tiny bit slow.Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-33128273045608980042016-07-21T14:03:00.002+03:002016-07-21T14:03:37.254+03:00Basic IR remote control for arduino trainGot inspired a while ago and added IR remote support to the train set. Lights can be turned on/off and the train can be fully controlled with the Play/Stop/Pause/FF/RW and Prev/Next track buttons.<br />
<br />
<ul>
<li>Play will start the train slowly to a set speed</li>
<li>Stop will engage the brakes and stop the train</li>
<li>Pause will slowly stop the train</li>
<li>FF & RW controls the speed</li>
<li>Prev/Next will change train direction (when stopped)</li>
<li>Number buttons (1-3) toggles building lights</li>
</ul>
The remote itself is a random Sony CD player remote I had laying around at home. <br />
<ul>
</ul>
A quick video below:<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/HbXdNjIwjuI?rel=0" width="640"></iframe>
<br />
The code is available on <a href="https://github.com/ubcenvcom/ekotukijuna" target="_blank">github</a> Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-23081683531289929732016-06-16T16:11:00.001+03:002016-06-16T16:11:20.927+03:00Train set (Environmental education pacakge) demo video A quick demo of the system in action<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/PdZazVtW2yM?rel=0" width="640"></iframe>Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-25101232208784269112016-06-15T10:09:00.000+03:002016-07-05T16:53:37.473+03:00Environment education package, a train set with various themesSomething I've been working on @Work(tm). It started with the <a href="http://onion-garlic.blogspot.fi/2015/08/electric-generator-excercise-bike.html" target="_blank">exercise bike generator</a> and then we went a bit crazy with the extras for it.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLo82I1U_4sNgAuWbvob0rJRtN_pftwSsgUPbrYx9-M2en_jjRZeo-Co_NwaNNKKKOkdiMe9NSq4pWSbAQb9ebnVny-D02l0jhx_xLRvUWOqM97UOdeRiurAZedM7OyWCXVykJT_FTt8U5/s1600/2016-06-01-1217.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLo82I1U_4sNgAuWbvob0rJRtN_pftwSsgUPbrYx9-M2en_jjRZeo-Co_NwaNNKKKOkdiMe9NSq4pWSbAQb9ebnVny-D02l0jhx_xLRvUWOqM97UOdeRiurAZedM7OyWCXVykJT_FTt8U5/s640/2016-06-01-1217.jpg" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Environment education package, train set with various themes</td></tr>
</tbody></table>
<br />
<br />
It is part of a environment education package with various themes, including <span class="" id="result_box" lang="en"><span class="">energy</span><span class="">, mobility</span><span class="">,</span> <span class="">waste management</span> <span class="">and biodiversity. It is part of the <a href="http://www.ekotuki.net/" target="_blank">City of Turku Ekotuki action</a>.</span></span><br />
<span class="" id="result_box" lang="en"><span class=""><br /></span></span>
<span class="" id="result_box" lang="en"><span class="">I've done the technical side of it using an AVR/<a href="http://ww.arduino.cc/" target="_blank">Arduino</a> as a main controller. The track has 3 (The two that are positioned at the parallel track location are combined into one.) IR sensors to track where the train is. The IR sensors are monitored using interrupts and as there are only two on the </span></span><a href="http://www.atmel.com/images/Atmel-8271-8-bit-AVR-Microcontroller-ATmega48A-48PA-88A-88PA-168A-168PA-328-328P_datasheet_Complete.pdf" target="_blank">ATmega328P</a><span class="" id="result_box" lang="en"><span class=""> the two sensors needs to be combined into one.</span></span><br />
<span class="" id="result_box" lang="en"><span class=""> </span></span><br />
<span class="" id="result_box" lang="en"><span class="">A H-bridge motor controller is used to run the train itself using one pin PWM for speed and a couple of pins for direction control.</span></span><br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI265zEXEPwrVhn62PgzlIBuCHGbra3wraNEqj37mq50RPn7YtkJ05YPE_hM9vFvd1GqI7_PGiGWS-YX4sBdLuZcPfEZENxoll_jx5iwelt3Ohz1QrGnVbz1RhP_sEUOqceLntT9Xg6vQz/s1600/2016-06-15-1276.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhI265zEXEPwrVhn62PgzlIBuCHGbra3wraNEqj37mq50RPn7YtkJ05YPE_hM9vFvd1GqI7_PGiGWS-YX4sBdLuZcPfEZENxoll_jx5iwelt3Ohz1QrGnVbz1RhP_sEUOqceLntT9Xg6vQz/s640/2016-06-15-1276.jpg" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">The system, a bit of a mess yes :)</td></tr>
</tbody></table>
<span class="" id="result_box" lang="en"><span class=""><span class="" id="result_box" lang="en"><span class="">As the whole system is covered with a plexiglass cover to keep fingers away</span></span>, the whole system and train needs to be fully automatic. The train controller is configured to run the train around the track a random amount of times (with lower and upper limits), then stop and the station and change direction.</span></span><br />
<br />
<span class="" id="result_box" lang="en"><span class="">To help debug the system a character LCD is connected trough i2c, it displays the current state, input voltage, speed, wait counters and various other data.</span></span><br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHXfewco_HjiqnK0TNo_O_OTP9uMUdjmnkFEAFzZH0pgZ7nADH4WVsRy4qHCyhw5ko-7icxiu8SQ1jqANY32XcKmb2HTci1WKcF1R3OG_KYmDMPN3GmSGxysmYnDH7CmTwW0DsD6Otfp58/s1600/2016-06-15-1289.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHXfewco_HjiqnK0TNo_O_OTP9uMUdjmnkFEAFzZH0pgZ7nADH4WVsRy4qHCyhw5ko-7icxiu8SQ1jqANY32XcKmb2HTci1WKcF1R3OG_KYmDMPN3GmSGxysmYnDH7CmTwW0DsD6Otfp58/s320/2016-06-15-1289.jpg" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Debug character LCD</td></tr>
</tbody></table>
<br />
<span class="" id="result_box" lang="en"><span class="">The run time and stop time can be adjusted with two potentiometers so code changes are not required for basic adjustments. These are read at startup with analog inputs.</span></span><br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4nWDZsXbLjw3u-Mc-OpJvkkY05qzbEs7NWluIhcoMWVTorTkvVtPlNaRd6B_w19C_PPIJ-oG6qyK8jeUX7Oz8qcfU0VhzrNFAeQCixZ431lMJ1qOHTApp20HRR-1SbTg7LVRvqQxE51Zt/s1600/2016-06-15-1279.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4nWDZsXbLjw3u-Mc-OpJvkkY05qzbEs7NWluIhcoMWVTorTkvVtPlNaRd6B_w19C_PPIJ-oG6qyK8jeUX7Oz8qcfU0VhzrNFAeQCixZ431lMJ1qOHTApp20HRR-1SbTg7LVRvqQxE51Zt/s320/2016-06-15-1279.jpg" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Configuration potentiometers</td></tr>
</tbody></table>
<br />
<span class="" id="result_box" lang="en"><span class="">We are considering adding a automatic/manual model toggle with some kind of a remote controller (IR might work).</span></span><br />
<span class="" id="result_box" lang="en"><span class=""><br /></span></span>
<span class="" id="result_box" lang="en"><span class="">All buildings have LED lights and are also controlled by the Arduino, currently some are combined because a lack of hardware (need to add a PWM LED controller) but all lights can be controlled separately.</span></span><br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqcfgE3XhuT5Jp9Nou_MJifKCLU96xqCOhlvg_kXNBSsoIWix5Znv_x4xMmYcYK0cZwQp6dN-oVq2q5aSjN022gnGh4qhQSW5kGqepqWaow02BxGcKKygY9S2nnNQHU2l324dhxrlIsARI/s1600/2016-06-15-1282.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqcfgE3XhuT5Jp9Nou_MJifKCLU96xqCOhlvg_kXNBSsoIWix5Znv_x4xMmYcYK0cZwQp6dN-oVq2q5aSjN022gnGh4qhQSW5kGqepqWaow02BxGcKKygY9S2nnNQHU2l324dhxrlIsARI/s400/2016-06-15-1282.jpg" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Building lights</td></tr>
</tbody></table>
<span class="" id="result_box" lang="en"><span class=""> <table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOkp_5rjK-RzL5Tr9KDHEY28eguUwDrXIR3FFqQI3Z3fquItCVRujHg5T1Ov_uzDpdsekQsLkNmHIR67mTxGSHoIARgvBsOV5fds7aMJ5Y236zNnq2Y9qosXUQUr88jHD_5mujtbLvqCeb/s1600/2016-06-15-1286.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOkp_5rjK-RzL5Tr9KDHEY28eguUwDrXIR3FFqQI3Z3fquItCVRujHg5T1Ov_uzDpdsekQsLkNmHIR67mTxGSHoIARgvBsOV5fds7aMJ5Y236zNnq2Y9qosXUQUr88jHD_5mujtbLvqCeb/s400/2016-06-15-1286.jpg" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Recycling point with street light</td></tr>
</tbody></table>
</span></span><br />
<br />
There is also a tiny i2c connected B&W LCD screen (the red thing by the blue car, supposed to be a charge point for electric cars) that is used to display logos of the sponsors (<i>Föli</i>, <i>Turku Energia</i>, <i>Lounais-suomen jätehuolto</i> and <i>Turun seudun puhdistamo Oy</i>) and train timetables (fixed for now). This will be upgraded to a color LCD sometime in future.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDhIUsO-rh7vDZlNa4YH-aad01z12QVSSHnSH343KSQBEt7XmySuQQ9L-q8pct_VyVLgIZjGTk29EuexNNHFZhC75Mov8elHQzDr2hZ79Jo_jRnkiGGD6WL0D0RUw2qo3WQxf6v3iCJBPc/s1600/2016-06-15-1281.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDhIUsO-rh7vDZlNa4YH-aad01z12QVSSHnSH343KSQBEt7XmySuQQ9L-q8pct_VyVLgIZjGTk29EuexNNHFZhC75Mov8elHQzDr2hZ79Jo_jRnkiGGD6WL0D0RUw2qo3WQxf6v3iCJBPc/s400/2016-06-15-1281.jpg" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Electric car charge point with advertisment screen</td></tr>
</tbody></table>
<br />
<br />
<span class="" id="result_box" lang="en"><span class="">The system can be <a href="http://onion-garlic.blogspot.fi/2015/08/electric-generator-excercise-bike.html" target="_blank">powered by the exercise bike</a> to demonstrate electricity generation and usage. It is also possible to power the system with a AC-adaptor in cases where using the bike is not possible.</span></span><br />
<span class="" id="result_box" lang="en"><span class=""> </span></span><span class="" id="result_box" lang="en"><span class=""> </span></span><br />
<span class="" id="result_box" lang="en"><span class="">The Arduino source code is open and <a href="https://github.com/ubcenvcom/ekotukijuna" target="_blank">available on github</a>. It is of course very specific to this particular setup but still, it is there. </span></span><br />
<br />
<span class="" id="result_box" lang="en"><span class="">The small house at the top has also a working solar panel. </span></span><br />
<span class="" id="result_box" lang="en"><span class=""> <table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrkrTUPxQDv27AWfBabGnrubT4NeZlh1c63ij1FnwOOEOEpPXU19o0x-4CKUkTw1smT85VsiLC1gBj0SxXdLLWQ5As6aL-vtdR-Zv1qJs5UydDmtaXPG0aVUb3FOU23bJO2EwOSk1Y0XKh/s1600/IMG_20151112_130621.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrkrTUPxQDv27AWfBabGnrubT4NeZlh1c63ij1FnwOOEOEpPXU19o0x-4CKUkTw1smT85VsiLC1gBj0SxXdLLWQ5As6aL-vtdR-Zv1qJs5UydDmtaXPG0aVUb3FOU23bJO2EwOSk1Y0XKh/s640/IMG_20151112_130621.jpg" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Solar panel with LED light in the window</td></tr>
</tbody></table>
</span></span>
<br />
The package is still evolving and one of the features in the pipeline is to add environmental and train sounds, upgrade the sponsor LCD to a color version and fully separate light control. Also a way to run the set in manual mode is <br />
<br />
Various kits was used to build the whole thing, you can find links to the major parts below if you are interested:<br />
<br />
<ul>
<li><a href="http://amzn.to/29gnOcV" target="_blank">Faller 130459 Wohnhaus "Backstrasse 3"</a></li>
<li><a href="http://amzn.to/29gopLx" target="_blank">Faller 130801 Plattenbau P2 </a></li>
<li><a href="http://amzn.to/29kxNkM" target="_blank">Faller 131242 Kleine Mühle</a></li>
<li><a href="http://amzn.to/29hjeuF" target="_blank">Faller 130468 Biogasanlage</a> </li>
<li><a href="http://amzn.to/29gp2ol" target="_blank">PIKO 57194 ICE 3 set</a></li>
</ul>
<br />Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-64708114780422552072016-04-25T12:10:00.000+03:002016-04-25T12:10:09.848+03:00Native ScummVM for PlayBook, progressI was sick and tried to do something usefull at the time. So, a bit of hacking on the BlackBerry fork of SDL to add support for native gestures (Swipe down and and Back swipe "down-left to upper-right").<br />
<br />
Swipe down is obviously used for the game menu access (F5 key) and back swipe for Escape to skip cut-scenes (ESC key).<br />
<br />
It is pretty much ready for submission!<br />
<br />
See below for a quick video on how the swipes are working in <a href="https://en.wikipedia.org/wiki/Sam_%26_Max_Hit_the_Road" target="_blank">Sam & Max Hit the Road</a> and <a href="https://en.wikipedia.org/wiki/Flight_of_the_Amazon_Queen" target="_blank">Flight of the Amazon Queen</a>.<br />
<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/Ha4SZJqwIQw?rel=0" width="640"></iframe>Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com3tag:blogger.com,1999:blog-4555744126969349585.post-45289076518893303802016-04-13T14:22:00.001+03:002016-04-13T14:22:18.240+03:00ScummVM for PlayBook and BB10Started to scratch an itch as nobody seemed to have done a proper native port of ScummVM for the PlayBook or BlackBerry 10 devices.<br />
<br />
It runs and the games seems to work. Now what is needed is some way to handle left/right clicks, F5 and other keyboard shortcuts.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDw56fRfcfvDugK-g7ubxWnIcmJxemXVF7E_NaVAAPM6rxHqHweehftQgMaFF7S_b73zoDM6wMKFU1TdgbtEZifazkvrHTGh7Pa88YODtcpA-6kTl8tA1K-4gFWi_8IEdLpe_6wEPkDZnB/s1600/IMG_20160412_113023.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDw56fRfcfvDugK-g7ubxWnIcmJxemXVF7E_NaVAAPM6rxHqHweehftQgMaFF7S_b73zoDM6wMKFU1TdgbtEZifazkvrHTGh7Pa88YODtcpA-6kTl8tA1K-4gFWi_8IEdLpe_6wEPkDZnB/s400/IMG_20160412_113023.jpg" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Native ScummVM on BlackBerry PlayBook</td></tr>
</tbody></table>
<br />
<br />
<br />Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-24066746044486477172016-03-21T22:37:00.001+02:002016-03-21T22:37:10.276+02:00RetroPlayer 1.0.0 beta for BlackBerry 10Very basic, but does what it is supposed to do. More at <a href="https://www.tal.org/projects/retroplayer" target="_blank">RetroPlayer project page</a>.<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/v7Bgx9I-yi0?rel=0" width="640"></iframe>
<br />
The icon is horrible, I suck at those.Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-16422362860416105492016-02-22T09:35:00.000+02:002016-02-22T09:35:12.858+02:00SID Player for BlackBerry 10Looks like I've been neglecting my blog again... well, let us do something about that.<br />
<br />
I've been planning on doing a SID player for a long long time already for BB10 devices but been a bit scary of doing the low-level audio stuff. No need for such under Linux devices thanks to gstreamer but BB10 does not come with a easy to extend media framework, you need to do everything yourself pretty much.<br />
<br />
Got inspired to do something about it a couple of days ago and started with a simple test application using libsidplayfp and QAudioOutput. Works. So next was to use QSA instead as QAudioOutput is not supported on BB10. Turned out to be quite easy (thanks to my effort to get espeak-ng speaking).<br />
<br />
A quick demo of my work in progress SID Player for BlackBerry 10<br />
<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/TGRoTfsuCoU?rel=0" width="640"></iframe>Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-83592256174494712482015-08-28T10:21:00.002+03:002015-08-28T10:21:35.843+03:00Electric generator excercise bike projectIt was first just a test and as it worked as intended we decided at work to continue with it and make it more interesting. The intended target groups are mainly schools (in City of Turku) and also various sustainability events.<br />
<br />
It has gone forward nicely, all basic functionality has been now implemented. The device has 3 main functions:<br />
<ol>
<li>12V, 5W incandescent light bulb</li>
<li> 12V, 1.5W LED light bar</li>
<li>Generic 12V plug for anything else you can think of</li>
</ol>
For option 3 we provide a 5V USB charger and a 12V travel kettle for boiling water. The kettle is 100W, it should take 20 minutes to get it to boil, I'm a fat-ass so almost died after pedalling for a couple of minutes... :)<br />
<br />
That was the basics, there are some parts that are still work in progress. Installed are already a current sensor and an LCD screen but they are currently unused. The bike itself also provides a RPM sensor (aka "a switch") that we can also use.<br />
<br />
The idea is to show the load in Amps, the Voltage and from there the Watts produced and of course RPM. One ideas was to also add a temperature sensor that could be put in the kettle to see if the water gets any warmer.<br />
<br />
It currently still needs manual activation to magnetize the alternator, but that could be made automatic. <br />
<br />
Check out the video below for a quick look:<br />
<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/GmQ2mY4VP2o?rel=0" width="640"></iframe>
Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-12363951570236466062015-08-26T11:44:00.003+03:002015-08-26T11:44:33.165+03:00Need a large box for your project ? Go to Ikea I needed a box to put all the wires, switches, connectors, fuses and stuff. First I checked a local electronics shop, they had some nice ones but expensive.<br />
<br />
Then we went to Ikea on the way home. And I found a nice 5l plastic container, cost a couple of € only.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNaTnX_GQuHq21XdFkDcqisuI5I-T2PJyPAo7RDRFmHv82NRpPJpZbVAUFC46MJaI2yHwU9B9Gh-xMeuzZ6hFYXuYd1_6UMo6KhYR6F-dSYm7RUei88fmMOpXpRn8JUAV9nC7rkxsmCcCu/s1600/2015-08-25-1018.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="360" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNaTnX_GQuHq21XdFkDcqisuI5I-T2PJyPAo7RDRFmHv82NRpPJpZbVAUFC46MJaI2yHwU9B9Gh-xMeuzZ6hFYXuYd1_6UMo6KhYR6F-dSYm7RUei88fmMOpXpRn8JUAV9nC7rkxsmCcCu/s640/2015-08-25-1018.jpg" width="640" /></a></div>
<br />
<br />
Just Perfect!Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-61792492237908056652015-08-20T15:07:00.003+03:002015-08-20T15:07:32.006+03:00Fours years ago N950 arrived in the mail #TBTFour years and two days to be exact. A N950 arrived. The absolutely best phone design ever made by Nokia, (IMO of course).<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj261mECXSFoBtxO1tG27dIlg5trqRwMkSX-W8nVWdBmtxbouK90w4Zz7zxrcOn7I6o2gi22NvB7TCUXZrKT7GKZrDgXknHMdMhOECN3045Tp6FA6UoHbM1ZxhiUorI-L7rLXzQmuwakbYZ/s1600/n950devkit.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="281" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj261mECXSFoBtxO1tG27dIlg5trqRwMkSX-W8nVWdBmtxbouK90w4Zz7zxrcOn7I6o2gi22NvB7TCUXZrKT7GKZrDgXknHMdMhOECN3045Tp6FA6UoHbM1ZxhiUorI-L7rLXzQmuwakbYZ/s400/n950devkit.jpg" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Nokia N950 dev kit</td></tr>
</tbody></table>
<br />
<br />
Full size touch screen with a full QWERTY keyboard that you could hide/show, running a proper Linux. A hackers dream device this. Just lovely.<br />
<br />
Very unfortunate that the "N9 with keyboard" never go to market, it would have been an awesome device.<br />
<br />
sigh...<br />
<br />Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0tag:blogger.com,1999:blog-4555744126969349585.post-47315366659407352852015-08-18T13:58:00.001+03:002015-08-18T13:58:59.193+03:00Custom Raspberry Pi Compute module carrier boardYet another project I'm involved in using a custom Compute Module carrier. Not by me, I just do the software part.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh30JrcUj29MLa_Bl16zmjhybeibiTl8D23cVNiWmLAIC4f5-kAvzBhRS5VqT7zV3C-W5JJyBE3ELKq-KiDPzxuJH_c6GGtK0wxY7Vbo2L1irE5tkgQP7rftNIeCRuc_GyF6IiTd8svjVOZ/s1600/IMG_20150522_141111.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh30JrcUj29MLa_Bl16zmjhybeibiTl8D23cVNiWmLAIC4f5-kAvzBhRS5VqT7zV3C-W5JJyBE3ELKq-KiDPzxuJH_c6GGtK0wxY7Vbo2L1irE5tkgQP7rftNIeCRuc_GyF6IiTd8svjVOZ/s400/IMG_20150522_141111.jpg" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJq1gsvk9hV7Fwn6uPwF22HY_v8fWNxVFGtJ2uX8_p5M41-Jadch1iXWd4Upcr4InyuhVczu8lG3kzh1URKQ7QpttwcTW2an4v74VnpVi3FbodzawrvtfgY-lBWBxoT5uKFNdtZknikN_z/s1600/IMG_20150522_141122.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJq1gsvk9hV7Fwn6uPwF22HY_v8fWNxVFGtJ2uX8_p5M41-Jadch1iXWd4Upcr4InyuhVczu8lG3kzh1URKQ7QpttwcTW2an4v74VnpVi3FbodzawrvtfgY-lBWBxoT5uKFNdtZknikN_z/s400/IMG_20150522_141122.jpg" width="400" /></a></div>
The board features 4 LEDs in various colors with light pipes and a connector for character LCD. HDMI and audio has been removed. Hand soldered.<br />
<br />
The maker of this board, Hasseb, has a <a href="http://hasseb.fi/shop2/index.php?route=product/product&product_id=57" target="_blank">ready made carrier board</a> available for 139€. A quick look video of this board+enclosure below:<br />
<br />
<br />
<iframe allowfullscreen="" frameborder="0" height="360" src="https://www.youtube.com/embed/rd9RImnTb94?rel=0" width="640"></iframe>Onionhttp://www.blogger.com/profile/18412232468425928698noreply@blogger.com0