XMEN BLOGGER

Monday, October 09, 2017

Raspberry Pi 1, 2 or 3 and Zero W - microSD Card Speed


From: Raspberrypi.org Forum
https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=144493
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=188592


Recommended: Sandisk Ultra!!! 32Gb, 64Gb or 128Gb


-Test with a benchmark software (sdbench):

sudo nano sdbench.sh
sudo chmod +x sdbench.sh
sudo ./sdbench.sh


-To fully utilize the speeds for the card, you have to enable sd_overclock in /boot/config.txt:

dtparam=sd_overclock=100

NOTE: It has to be HC-1/UHS-1 or higher (like U1 or higher, or HC-I or higher).


-Run sdbench.sh:
32GB EVO+ Samsung UHS-1/HC-1 micro sdcard in a RPI3

pi@raspberrypi:~ $ sudo ./sdbench.sh

CONFIG:
CLOCK : 100.000 MHz
CORE : 500 MHz, turbo=1
DATA : 512 MB, /root/test.dat

HDPARM:
======
Timing O_DIRECT disk reads: 128 MB in 3.02 seconds = 42.41 MB/sec
Timing O_DIRECT disk reads: 128 MB in 3.05 seconds = 42.03 MB/sec
Timing O_DIRECT disk reads: 122 MB in 3.01 seconds = 40.50 MB/sec

WRITE:
=====
536870912 bytes (537 MB) copied, 27.4302 s, 19.6 MB/s
536870912 bytes (537 MB) copied, 27.386 s, 19.6 MB/s
536870912 bytes (537 MB) copied, 25.623 s, 21.0 MB/s

READ:
====
536870912 bytes (537 MB) copied, 12.312 s, 43.6 MB/s
536870912 bytes (537 MB) copied, 12.3474 s, 43.5 MB/s
536870912 bytes (537 MB) copied, 12.3233 s, 43.6 MB/s

RESULT (AVG):
============
Overlay config core_freq turbo overclock_50 WRITE READ HDPARM
500 1 100.000 MHz 19.12 MB/s 41.54 MB/s 41.63 MB/s


-Turbo mode:

sudo echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
sudo echo 20 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor

Thursday, April 13, 2017

Asteroid 2014 JO25 - 18th April 2017

More info at:
https://www.jpl.nasa.gov/news/news.php?feature=6807

And Espacio Profundo Forum:
http://www.espacioprofundo.com.ar/topic/27770-asteroide-2014-jo25/

And:
http://www.sociedadastronomia.com/Asteroide2014JO25.html

¿Cómo localizar el Asteroide 2014 JO25?

Mirando hacia el ESTE, entre las 9:00 p.m. y 10:00 p.m. del 19 de Abril, 2017.

Tuesday, April 04, 2017

Canciones para aprender ingles - links!!!


Letras en Ingles

10 canciones que te ayudaran a aprender ingles de forma efectiva y rapida

01 ‘Blank Space’ de Taylor Swift
02 ‘If I Were a Boy’ de Beyoncé
03 ‘ The Heart Wants What It Wants’ de Selena Gomez
04 ‘Thinking Out Loud’ de Ed Sheeran
05 ‘Torn’ de Natalie Imbruglia
06 ‘ Somebody That I Used to Know’ de Gotye
07 ‘Every Breath You Take’ de Police
08 ‘Someone Like You’ de Adele
09 ‘Friday I’m in Love’ de The Cure
10 ‘Time After Time’ de Cindy Lauper

Once upon a time, Freddie said: di-ro-reeeeeee-ro!!! ;-P


EEEEEEEROOOOO

EEEEEEEROOOOO

ERO

DIRORERE RERERE ERO

DIRORERE RERERE ERO

ERO

DIRORERE RERERERO

ERO

ERO

EEEEEEEEEEERO

DIROREREEEEERO

DIRORERERO DIROREROOO DIDOREREREREEEEEERO

DIROREEEEEERO DIROREEEEEEEEEEEERO DIROREEEEEEEEEEEEEERO

DIROREREEEEEERO ERO ERO ERO

DIROREEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEERO!!!!!!!!


And Live at Wembley 11.7.1986 - A Kind Of Magic

Thursday, March 23, 2017

18650 Batteries


From: Battery Types, http://www.best18650battery.com/



-For Li-ion batteries

18 - The first two digits "18" stand for the battery diameter in millimeters. In this case width of the battery is 18mm (millimeters).
65 - The third, and fourth digit stand for length in millimeters. That would be 65mm.
0 - For simplicity just forget about the last digit zero for now.

-So what is a 16340 battery ?

16mm - diameter
34mm – length

Besides size and capacity, you may notice the 3 letter codes on most Li batteries like ICR, IMR, INR, NCR, etc. printed on the battery like the Samsung ICR18650-26F, INR18650-30Q, Panasonic NCR18650B, etc. These are various types of Li-ion batteries . The 3 letter codes are manufacturer codes, and most but not all, use this as a standard way to refer to the different types of cells.

“I_R”

The first Letter "I" just means that the cell is a Li-ion rechargeable.
Second letter refers to the cathode material.
The last letter "R" just means the cell is round.

ICR = Li-ion Rechargeable, the "C" = Cobalt.
IMR = the "M" stands for Manganese, or "Mn".
INR = the “N” stands for Nickel.
IFR = the "F" stands for the element "Fe" which is Iron.

INR seems to have rather similar proterties to IMR i.e. low internal resistance and delivery high current without causing the battery from getting too hot. It is also classified as a safer chemistry so it's another ideal high drain battery.

-What about Panasonic NCR18650B ?

The name NCR18650B is just Panasonic’s part number and it’s also a Lithium Cobalt battery, like an ICR cell. Panasonic does put some additional safety features that make it safest of any ICR cell.

The NCR18650B is available with and without protection. Again for protected cell, it may be offered as a rewrapped under different brand or same brand but the dimension will be longer and wider, so it may not suit some devices.

Capacity or mAh (milliampere hour) Rating - an approximation for how long a battery charge should last on a full charge. This is the battery capacity and is used to describe a battery's "fuel tank", as in general a battery with higher mAh ratings will last longer assuming that it's subjected to same usage patterns.

To estimate how long a battery last, divide the capacity of battery by the current consumed by device. For example, the battery is 3400mAh and a cree torch consumed 2.4A (2400mA), it will last 1.42 hours approx. If you use a 2600mAh, it last you only 1.08 hours only.

The "best battery" is not always the one with the largest mAh rating. In most applications a higher current rating (C-rating) determines the better battery.

The C rating is the maximum safe continuous discharge rate of a battery. If you see 10C on your battery, it means it can be discharged at 10 times that cell’s capacity. Capacity refers to the milliamp-hour rating of the battery, which will be listed as a number followed by mAh (2000mAh, for example). Here's the easy way to find your battery's discharge rate; just multiply the number from the C rating by the cell's capacity. Keep in mind that 1000 milliamps equals one amp.
Here's an example, using an 3.7V 2000mAh 10C

3.7 volt 2000mAh -10C
2000 milliamps = 2 amps
2 Amps x 10 = 20 amps continuous discharge

This means that you can safely draw up to 20 amps continuously from that 3.7V 2000mAh 10C without doing damage to your battery.

-Example: Samsung ICR18650 26-F 2600mAh 2C

It means the max. continuous discharge current is 5.2A (2.6x2). Now you know why this battery price is so low, because of low C-ratings and also not really a high capacity (mAh) battery.

Tuesday, March 21, 2017

Nagios - Windows passive PING


-Configure nsclient (NSC.ini):

[modules]
;# NSCLIENT++ MODULES
;# A list with DLLs to load at startup.
; You will need to enable some of these for NSClient++ to work.
; ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
; * *
; * N O T I C E ! ! ! - Y O U H A V E T O E D I T T H I S *
; * *
; ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
NSClientListener.dll
NRPEListener.dll

[Settings]
allowed_hosts=10.68.55.160
use_file=1

[NRPE]
port=5666
command_timeout=90

[NRPE Handlers]
passive_ping=c:\nsclient\pping.bat

-Create batch file (pping.bat):

@echo off
ping –n 1 178.60.210.204 -w 20000 >NUL
IF ERRORLEVEL 1 GOTO err
IF ERRORLEVEL 0 GOTO ok
GOTO unknown

:err
echo CRITICAL: Ping check failed
exit /B 2

:unknown
echo UNKNOWN: Something went wrong
exit /B 3

:ok
echo OK: Ping succeded
exit /B 0

Sunday, March 12, 2017

GoPro - DIY HandHeld Gimbal

3-Axis gimbal w/ Strom32 controller - HAKRC Strom32 BGC board

OPTION 1: RENOWATIO R - Storm32 & YS3 3X XML T6 **** W/ Big flashlight
▻Storm32 Software
OPTION 2: Electro Stunts - Storm32 StedyCam & YS3 3X XML T6 ***** Great Solution!!!
▻Storm32 StedyCam Software
OPTION 3: PERLE TV - 3 Axis DIY Handheld Gimbal & YS3 3X XML T6 **** Part 1/3
▻He uses same Storm32 StedyCam Software as OPTION 1
OPTION 4: tnxmatze - DIY Handheld Gimbal **** Little XML T6
OPTION 5: DIY Handheld 3axis Gimbal Stabilizer (without instructions)
OPTION 6: Cheap handheld 3axis gimbal - Storm32 board (Cheap Option w/out light hand)
OPTION 7: IWasHere - HAKRC Storm32 3 Axis Brushless Gimbal - GearBest
▻Storm32 Config file

Parts:
-HAKRC Storm32 3 Axis Brushless Gimbal Gopro3 / Gopro4 FPV Accessory (Aliexpress - $55)
-LED Flashlight YS3 3 x XML T6 1800 5 Modes Water Resistant 18650 LED (Aliexpress - $25)
-Joystick Controller HHG-JS for 3 Axis Basecam 8 32 Bits (Aliexpress - $10)

-Flashlight
http://www.banggood.com/Wholesale-E3-XM-L-T6-5-Modes-1600LM-Zoomable-LED-Flashlight-Suit-Set-2-x-18650-p-40234.html?p=PW08201889709201507X



Best handle(DIY) parts:
https://www.youtube.com/watch?v=3X6FxkMcF-k

Parts:
-Tripod
-USB Battery
-Swivel Torch Mount
-Mini Pocket Tripod Mount Stand Screw

GoPro USB Battery Grip DIY
https://www.youtube.com/watch?v=mnea-4-U4xo

https://www.youtube.com/watch?v=i0oZLogw7jY
Parts list:
- GoPro tripod mount - Can be bought at most places that sell GoPro accessories. Best Buy usually carries them or knock-offs can be bought on ebay.
- 1/2" CPVC pipe cap - Can be found at most hardware stores. DON'T buy a PVC cap. You want CPVC. They are different sizes.
- A short 1/4"-20 screw - This goes through the CPVC cap and into the GoPro tripod mount.
- One lock-on bicycle grip - These come in pairs only. Make sure you buy grips that have the locking rings on both ends of the grips. Can be found on Amazon.com, bicycle gear web sites, or your local bike shop.
- An external backup battery with USB charging outlet. This must be in the shape of a cylinder and have a diameter of 7/8" or 22mm.



From:
https://www.rcgroups.com/forums/showthread.php?1832271-DIY-Brushless-Gimbal-For-GoPro-Nex5

Low cost ,simple DIY project idea for "GoPro Brushless Gimbal",
Need little mod for adapting brushless motors, not finished mine yet, but developable,
I hope you like..

Part List:
Alexmos Simple Brushless Gimbal Controller or Opensource German Version
2-Axis Aluminium Aerial Photography PTZ from GLB 10$
1x Motor Mount from GLB 5$
1x HK 450 Carbon tail boom from HK 2.85$
2x Brushless Motors from HK Ready to use Brushless Gimbal Motors

-BaseCam (AlexMos) SimpleBGC
https://www.basecamelectronics.com/simplebgc/

Or

-Opensource German Version
https://code.google.com/archive/p/brushless-gimbal/

-GOPRO FPV Stability PTZ 2-Axis Aluminium Aerial Photography PTZ for Quadcopter - $10.66 SKU 90738
http://www.goodluckbuy.com/gopro-fpv-stability-ptz-2-axis-aluminium-aerial-photography-ptz-for-quadcopter-.html
Description:
- Type: Univerdal Two-axle Aerial Pan & Tilt
- Material: Aluminium
- Weight:64g(excluding servos)
- Silicon anti vibration
- For Quadcopter multicopter FPV system
- This set doesn't include Servos

Aluminum Brushless Motor 2212 2822 Mount for 12mm Fiber Glass Tube $5.74 SKU 77777
http://www.goodluckbuy.com/aluminum-brushless-motor-2212-2822-mount-for-12mm-fiber-glass-tube.html
Description:
- CNC made
- 6061 Aluminum material
- Used for 2212 2822 series motor
- Suited for 12mm glass/carbon Fiber tube
- Color:Black
- Weight: 9 gram
- Right part to built Muiticopter

-HK450 carbon tail boom €2.69
https://hobbyking.com/en_us/hk450-carbon-tail-boom.html
Description:
- HK450 carbon tail boom
- Length: 347mm
- Outer diameter: 12.45mm
- Inner diameter: 10.8mm



-GOPRO FPV 2-Axis Aluminium Photography PTZ with Two Sevos for Quadcopter $21.31 SKU 90739
http://www.goodluckbuy.com/gopro-fpv-2-axis-aluminium-photography-ptz-with-two-sevos-for-quadcopter-.html
Description:
- Type: Universal Two-axle Aerial Pan & Tilt
- Material: Aluminium
- Weight:127g(including two servos)
- Silicon anti vibration
- For Quadcopter multicopter FPV system
Package include:
- 1 x PTZ
- 1 x SG90 servo
- 1 x Gotech D9257 servo

-TowerPro SG90 9G Mini Servo with Accessories $3.28 SKU 52967
http://www.goodluckbuy.com/towerpro-sg90-9g-mini-servo-with-accessories.html
Description:
- Dimension : 22mm x 12mm x 29mm
- Weight : 9g
- Operating Speed : 0.12sec / 60 degrees (4.8V no load)
- Stall Torque : 1.5kg/cm at 4.8V
- Temperature Range : -30 to +60 Degree C
- Dead Band Width : 2 usec
- Operation Voltage : 3.0 - 7.2Volts
- Motor Type : coreless motor
- Gear Type : All Nylon Gear
- Connector Wire Length : 150mm



DJI Phantom Brushless Gimbal Camera Mount with Motor / GLB 3.1 2-Axis Brushless Gimbal MOS Controller for Gopro Hero 3 $30.34
http://www.xt-xinte.com/F07960.html

Saturday, March 04, 2017

Planetarium

-Planetarium
http://vega00.com/2017/03/cielo-simple-vista-marzo-2017.html/
https://www.timeanddate.com/eclipse/in/spain/barcelona
https://theskylive.com/planetarium

-Lluvia de estrellas
http://www.meteosolana.net/lluvia-de-estrellas/

-Eclipse Solar Eclipse August 21,2017
http://www.celestron.com/2017-eclipse-watch#entered
https://www.saros.org/eclipse-solar-21-08-2017/



Desde Barcelona no será visible!!





-Próximos eclipses en Barcelona






-Shops!!

http://www.telescopiosbarcelona.es/omegon/575-filtro-lunar-polarizado-omegon.html
http://www.telescopiosbarcelona.es/16-filtros-#/fabricante-teleskop_service
http://www.astroshop.es/omegon-cronus-wa-6-mm-1-25-/p,32982

Telescope Express - Calculating Magnification & Eyepieces


Calculating magnifications:

M=fo/fe; M=f(objective)/f(eyepiece)
 fo - Focal length telescope
 fe - Eyepiece focal

-Maximum magnification:
Mmax = 2 * Φ

-Minimum magnification:
Mmin = 2 * Φ / 10

-Best result Eyepiece (best magnification):
Er = fo / Φ



In my case, a Celestron NexStar 127SLT:

fo = 1500mm
 Φ = 127mm (D, diameter)
f/12

 9mm Eyepiece -> M=166x
12mm Eyepiece -> M=125x
25mm Eyepiece -> M=60x

Mmax = 2 * Φ = 254, then 254x
Mmin = 2 * Φ / 10 = 25.4, then 25.4x
  Er = 1500mm / 127mm = 11.8mm, then f/12 (12mm eyepiece)



More information at:
http://espacio846.blogspot.com.es/2011/08/como-calcular-los-aumentos-de-mi.html
http://www.astropractica.org/tab/config.htm
http://astrum.astrosabadell-labs.org/astrum/astrumpr-279ene17/html5/index.html

Raspberry Pi - SkyPi


From: http://wiki.neuralbs.com/index.php/SkyPi
& https://stargazerslounge.com/topic/180030-skyfi-with-a-pi/



DHCP/DNS

Don't want to have to remember the IP of the SkyPi and networks stuff... We start by naming the RPI as SkyPi-EQ6 (just so we are consistent with the rest of this document), but only for the wlan0 interface (the RPI's "real" name will remain SkyPi when plugged via eth0)

vim /etc/hosts
127.0.1.1 SkyPi
192.168.168.1 SkyPi-eq6

Now let's install dnsmasq and perform a minimal configuration (find and uncomment/modify the lines described below)

apt-get install dnsmasq
vim /etc/dnsmasq.conf

By default, all lines are comments, so simply add/modify the following lines:

interface=wlan0
dhcp-range=192.168.168.50,192.168.168.100,12h
port=0 # we don't want/need DNS

Now restart the service:

root@SkyPi:~# /etc/init.d/dnsmasq restart
[ ok ] Restarting DNS forwarder and DHCP server: dnsmasq.


Wednesday, March 01, 2017

NAS DNS-320L w/ Alt-F - Check RAID status



[root@DNS-320L]# cat /proc/mdstat

[root@DNS-320L]# mdadm --detail /dev/md1

[root@DNS-320L]# mdadm --examine /dev/sda2

[root@DNS-320L]# mdadm --examine /dev/sdb2

[root@DNS-320L]# cat /etc/mdadm.conf



- Examples:

[root@DNS-320L]# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid6] [raid5] [raid4]
md1 : active raid1 sda2[2] sdb2[0]
      2929550672 blocks super 1.0 [2/1] [U_]
      [>....................] recovery = 1.6% (49317824/2929550672) finish=349.9min speed=137164K/sec
      bitmap: 22/22 pages [88KB], 65536KB chunk

unused devices: <none>
[root@DNS-320L]#

[root@DNS-320L]# mdadm --detail /dev/md1
/dev/md1:
        Version : 1.0
  Creation Time : Wed Mar 1 04:25:39 2017
     Raid Level : raid1
     Array Size : 2929550672 (2793.84 GiB 2999.86 GB)
  Used Dev Size : 2929550672 (2793.84 GiB 2999.86 GB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Wed Mar 1 22:11:06 2017
          State : clean, degraded, recovering
 Active Devices : 1
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 1

 Rebuild Status : 6% complete

           Name : DNS-320L:1 (local to host DNS-320L)
           UUID : 564d0424:9767531a:a3506da0:25799038
         Events : 49999

  Number Major Minor RaidDevice State
     0     8     18      0      active sync   /dev/sdb2
     2     8      2      1      spare rebuilding   /dev/sda2
[root@DNS-320L]#

Monday, February 27, 2017

Alt-F - How to convert a "standard" filesystem to RAID1 keeping all your data


From: Alt-F Wiki

Apply to DLink DNS-320/320L/321/323/325/327L with Alt-F firmware (free alternative firmware)



If you have a one disk "standard" filesystem and you which to convert it to RAID1, you can use one of the following procedures:

A - safest, no risk of data loss:
-Create a new degraded RAID1 with your new disk using Disk->Wizard (1)
-Copy all data from the old "standard" partition to the new RAID1 using Setup->Folders
-Verify that the data in the RAID1 is fine
-Change the old disk "standard" partition type to RAID using Disk->Partitioner (2)
-Add the old disk RAID partition to the new RAID as a new component using Disk->RAID

B - only works on disks smaller than 2TB, there is a data loss risk (3)
-Shrink your current "standard" filesystem using Disk->Filesystem
-Change the "standard" partition type to RAID using Disk->Partitioner (2)
-Unmount the filesystem using Disk->Filesystem
-Create a degraded RAID1 using the now RAID partition using Disk->RAID
-Enlarge the filesystem contained in the RAID using Disk->Filesystem
-Add a new disk and follow the How to fix a degraded RAID1 wiki

NOTES:
(1)-Make sure that the new disk in the only disk checked in the Disk Wizard upper section!
(2)-Make sure to only uncheck the "Keep" check-box for the "standard" partition, and then only change its type from "linux" to "RAID" -- don't change anything else!
(3) Bigger than 2.2TB disks requires a RAID metadata version 1.x. If using metadata version 1.1 or 1.2 your data will be lost. Metadata version 0.9 and 1.0 are safe.

Sunday, February 05, 2017

Celestron - Multi Finder Scope Mount


To mount something like this...


We need the following parts:

Multi-Slot Finder Scope Bracket $54.90
Smartphone Finder Scope $15.99
16x55mm Host/Housing/Case w Glass Lens $5.63
35mm Laser Pointer Bracket for Astronomical Telescope $19.99

Together $96.03 + shipping



-A Multiple Finder Scope mount:
Multi-Slot Finder Scope Bracket $54.90
or
Finder Scope mounting bracket $59.99


-A hold/housing for our laser module:
In my case, I have a 5.6mm TO-18 (Φ12mm) green laser (50mW) module, then I need something like this:
16x55mm Host/Housing/Case w Glass Lens $5.63

Another option is a laser holder pen for Φ12mm:
Adjustable Focusable Housing for Laser Pointer Torch $11.36
DIY Laser Pointer Pen Housing/Casing/Host for Φ12mm Laser Diode Module $5.80
Survival Laser C6 Host Assembly SL-SLC6LHA $19.99
More options:
Metal Housing/Case/Host 18x45mm $1.90
16x50mm Host/Housing/Shell with Lens $4.69
16x55mm Focusable Housing w/ Glass Lens $8.25
Accessories:
Unanodized Aluminum Heat Sink for Φ12mm Laser Diode Module $6.99

-A Finder Rings Adapter:
35mm Laser Pointer Bracket for Astronomical Telescope $19.99
Adjustable Pointer Finderscope Laser Bracket $27.71
Orion 52062 SkyLine Deluxe Laser Pointer-to-Telescope Bracket $36.83
NOTE: ORION 52062 can accommodate laser pointer devices with tubes ranging from 10.3mm (0.40") to 14.5mm (0.57") in diameter, and at least 8cm (3.1") long.

Other option:
Adjustable Mount for Φ12mm Laser Module £12.95
Two-axis Adjustable Laser Module $11.40

-Smartphone Finder Scope:
Smartphone Finder Scope $15.99


Thursday, February 02, 2017

Zener Diode as a Voltage regulator for GPS


- Zener:


- Regulador de voltaje:
You may try connect the 6V output to series with zener 5.6V and resistane (resistance power calculate) connect your output(between zener diode) to feedback of ADC Ref terminal. (ADC won't need exact 5V , you need some changes in programming) The resistor will dissipate excess voltage.

Connection diagram like this:

(6V positive) ---> resistance <---> zener5.6V ---> (6v negative) | | output + - Zener diode direction is most important.




How to Build a Voltage Regulator with a Zener diode
https://youtu.be/sHAa99W-08s
1KOhm (brown, black & red color) resistor and 1N4733 Zener

-Resistencias normalizadas (comerciales):




- Notas:
http://www.proyectoelectronico.com/fuentes-reguladores/reguladores-voltaje.html

- GPS:

GPS Module with Antenna

Uart TTL Output, Baud Rate 4800, 1HZ
1PPS Output: When GPS module get location, it will output 1PPS pulse every 1 second.

Note: This is GPS Module with Antenna, chip is Telit JF2 GPS, low power, SiRF IV.

Size: 28mm*28mm*8.5mm

About Pin:
1) VCC, 2.8V to 5.5V
2) GND
3) RX, no use
4) TX, Uart output, baud rate is 4800
5) 1PPS, when GPS module get location, it will output 1PPS signal every 1 second. The signal is active hign 100ms pulse




Sunday, January 29, 2017

Raspberry Pi - RetroPie configuration


-RetroPie SetUp
https://github.com/retropie/retropie-setup/wiki/manual-installation

-SSH configuration
https://github.com/retropie/retropie-setup/wiki/ssh

-Updating RetroPie
https://github.com/retropie/retropie-setup/wiki/updating-retropie

-Setting up PS3 controller
https://github.com/retropie/retropie-setup/wiki/Setting-up-a-PS3-controller

-Adding C64 emulator
https://www.youtube.com/watch?v=u2TwHKVYAZk

Green Laser Telescope for Astronomy


-Where to buy:

http://www.potentelaser.com/laser-verde-50mw-comprar.html

http://torlaser.com/es/2-greenpocket-puntero-laser-verde-50mw-de-torlaser.html



https://oxlasers.en.alibaba.com/product/916515069-218703343/OXLasers_OX_G306_1_100mW_burning_focusable_MINI_Green_Laser_Pointer_torch_light_matches_visible_green_beam.html

https://wholesaler.alibaba.com/product-detail/OXLasers-focusable-Green-Laser-Pointer-with_60406913165.html

http://www.telescopiomania.com/accesorios-para-telescopios-astronomicos/3173-laser-verde-lunatico-astronomia-con-soporte-para-telescopio.html?gclid=CMK8sK3Ro9ECFYwQ0wod3WEDOg

http://tienda.lunatico.es/



Cosmik - Soporte buscador laser universal
http://www.telescopiosbarcelona.es/55-laser-verde#/

Orion 52062 SkyLine Deluxe Laser Pointer-to-Telescope Bracket *******
http://www.ebay.com/itm/Orion-52062-SkyLine-Deluxe-Laser-Pointer-to-Telescope-Bracket-/122283404157?hash=item1c78a8ab7d:g:T-gAAOSwEzxYXtRE

Laser Pointer-to-Telescope Bracket
http://www.telescope.com/Accessories/Telescope-Finder-Scopes/Orion-SkyLine-Deluxe-Laser-Pointer-to-Telescope-Bracket/c/3/sc/49/p/52062.uts

Solomark Adjustable Laser Pointer Bracket
Laser Pointer Finderscope Bracket for Telescope - Astronomy
http://www.ebay.com/itm/Laser-Pointer-Finderscope-Bracket-for-Telescope-Astronomy-/201479155841?hash=item2ee917f081:g:-yUAAOSw6BtVUuI1



Orion Dual Finder Scope Mounting Bracket
http://www.telescope.com/Orion-Dual-Finder-Scope-Mounting-Bracket/p/102788.uts

Skywatcher Bracket Scope
http://www.ebay.com/itm/New-Standard-Deluxe-Multi-Slot-Finder-Scope-Bracket-for-Vixen-SkyWatcher-Finder-/361762099005?hash=item543ab38f3d:g:za0AAOSwzaJX7dgO

https://www.firstlightoptics.com/finders/flo-multi-finder-adapter-for-skywatcher.html



Telescope Smartphone Finder Scope Mirror Bracket for SKYATCHER ******
http://www.ebay.com/itm/Telescope-Smartphone-Finder-Scope-Mirror-Bracket-for-SKYATCHER-VIXEN-Standards-/172348431994?hash=item2820c45e7a:g:lJkAAOSwOyJX4Kp7

S8049 smartphone bracket
https://www.aliexpress.com/store/product/S8049-smartphone-bracket-Astronomical-telescope-phone-finder-scope-mirror-for-SKYATCHER-VIXEN-type/1371081_32350751366.html



Black Metal Small Dovetail Board Plate for Optical Telescope Finderscope



- DIY e.g. Red Laser Pointer

From:
http://laserpointerforums.com/f50/cheap-red-laser-300mw-build-pics-heavy-91508.html

Survival Laser DIY C6 Host Assembly 10.89$+1$(drilled driver pill)
Survival Laser Red Anodized Aluminum Heat Sink 7.99$
10pcs Aixiz Standard acrylic lens 12.00$/10=1.2$ each
Aixiz laser module 5.6mm 4.50$
2pcs Contact board (cheap led driver) 2.77$/2=1.385$ each
Aixiz adjustable current laser diode driver 80-500mA w/TTL 3.75$
10pcs Red Laser Diodes ML101U29-25 29.98$/10=2.998$ each

Together 33.72$+shipping






Raspberry Pi - Installing OS images on Mac


From:
https://www.raspberrypi.org/documentation/installation/installing-images/mac.md



-Open a terminal, then run:

diskutil list

Identify the disk (not partition) of your SD card e.g. disk4, not disk4s1.

-Unmount your SD card by using the disk identifier, to prepare for copying data to it:

diskutil unmountDisk /dev/disk

where disk is your BSD name e.g. diskutil unmountDisk /dev/disk4

-Copy the data to your SD card:

sudo dd bs=1m if=image.img of=/dev/rdisk

where disk is your BSD name e.g. sudo dd bs=1m if=2017-01-11-raspbian-jessie.img of=/dev/rdisk4

This may result in a dd: invalid number '1m' error if you have GNU coreutils installed. In that case, you need to use a block size of 1M in the bs= section, as follows:

sudo dd bs=1M if=image.img of=/dev/rdisk

This will take a few minutes, depending on the image file size. You can check the progress by sending a SIGINFO signal pressing Ctrl+T.

If this command still fails, try using disk instead of rdisk, for example:

sudo dd bs=1m if=2017-01-11-raspbian-jessie.img of=/dev/disk4

or

sudo dd bs=1M if=2017-01-11-raspbian-jessie.img of=/dev/disk4

-After the dd command finishes, eject the card:

sudo diskutil eject /dev/rdisk3



Or using ApplePi Baker for macOS!!!



Summary:

$ diskutil list
$ diskutil unmountDisk /dev/disk3
$ sudo dd bs=1m if=SDimage.img of=/dev/rdisk3
$ diskutil eject /dev/rdisk3



Format USB disk ( and ExFAT):

$ diskutil list
$ diskutil unmountDisk /dev/disk3
$ diskutil eraseDisk ExFAT Files /dev/disk3

or...

$ diskutil eraseDisk JHFS+ SDcard /dev/disk3

Where "Files" and "SDcard" is the lavel of the device.

Saturday, January 28, 2017

Raspberry Pi - Add Commodore 64 emulator to RetroPie


-VICE Emulator
https://github.com/retropie/retropie-setup/wiki/Commodore-64

-Install VICE on RetroPie (Video - Youtube)
https://www.youtube.com/watch?v=u2TwHKVYAZk

-Amiga emulator(UAE4ALL2) on Raspberry Pi
https://www.youtube.com/watch?v=1s1BJXzsoRM
https://www.raspberrypi.org/forums/viewtopic.php?f=78&t=102328

-ROMS
http://www.gametronik.com/site/emulation/commodore_c64/

-C64 Mod (RaspberryPi)
http://www.breadbox64.com/blog/c64-raspberrypi-mod/#comment-926
Note: Uses Neutrik connectors

-ROMS & Videos
https://c64endings.wordpress.com



ROMs compatibles *****
Tapes.c64.no

http://www.commodorezone.com/64tapef.htm

Monday, January 23, 2017

Cygwin - How to run a crontab


Install cron (Vixie's Cron) first!!! From Cygwin setup.exe!!!



From:
http://stackoverflow.com/questions/707184/how-do-you-run-a-crontab-in-cygwin-on-windows

You have two options:

1. Install cron as a windows service, using cygrunsrv:

cygrunsrv -I cron -p /usr/sbin/cron -a -D
net start cron

2. The 'non .exe' files are probably bash scripts, so you can run them via the windows scheduler by invoking bash to run the script, e.g.:

C:\cygwin\bin\bash.exe -l -c "./full-path/to/script.sh"



Hat tip http://linux.subogero.com/894/cron-on-cygwin/

Start the cygwin-setup and add the “cron” package from the “Admin” category.

We’ll run cron as a service by user SYSTEM. Poor SYSTEM therefore needs a home directory and a shell. The “/etc/passwd” file will define them.

$ mkdir /root
$ chown SYSTEM:root /root
$ mcedit /etc/passwd
SYSTEM:*:......:/root:/bin/bash

The start the service:

$ cron-config
Do you want to remove or reinstall it (yes/no) yes
Do you want to install the cron daemon as a service? (yes/no) yes
Enter the value of CYGWIN for the daemon: [ ] ntsec
Do you want the cron daemon to run as yourself? (yes/no) no
Do you want to start the cron daemon as a service now? (yes/no) yes

Local users can now define their scheduled tasks like this (crontab will start your favourite editor):

$ crontab -e # edit your user specific cron-table HOME=/home/foo
PATH=/usr/local/bin:/usr/bin:/bin:$PATH
# testing
* * * * * touch ~/cron @reboot ~/foo.sh 45 11 * * * ~/lunch_message_to_mates.sh

Domain users: it does not work. Poor cron is unable to run scheduled tasks on behalf of domain users on the machine. But there is another way: cron also runs stuff found in the system level cron table in “/etc/crontab”. So insert your suff there, so that SYSTEM does it on its own behalf:

$ touch /etc/crontab
$ chown SYSTEM /etc/crontab
$ mcedit /etc/crontab
HOME=/root
PATH=/usr/local/bin:/usr/bin:/bin:$PATH
* * * * * SYSTEM touch ~/cron
@reboot SYSTEM rm -f /tmp/.ssh*

Finally a few words about crontab entries. They are either environment settings or scheduled commands. As seen above, on Cygwin it’s best to create a usable PATH. Home dir and shell are normally taken from “/etc/passwd”.

As to the columns of scheduled commands see the manual page.

If certain crontab entries do not run, the best diagnostic tool is this:

$ cronevents



Applied the instructions from this answer and it worked Just to point out a more copy paste like answer (because cygwin installation procedure is kind of anti-copy-paste wise implemented).
Click WinLogo button , type cmd.exe , right click it , choose "Start As Administrator". In cmd prompt:

cd cygwin installer:
set package_name=cygrunsrv cron
setup-x86_64.exe -n -q -s http://cygwin.mirror.constant.com -P %package_name%

Ensure the installer does not throw any errors in the prompt ... If it has - you probably have some cygwin binaries running or you are not an Windows admin, or some freaky bug ...

Now in cmd promt:

C:\cygwin64\bin\cygrunsrv.exe -I cron -p /usr/sbin/cron -a -D
or whatever full file path you might have to the cygrunsrv.exe and start the cron as windows service in the cmd prompt

net start cron

Now in bash terminal run:

crontab -e

set up you cron entry an example bellow:

#sync my gdrive each 10th minute
*/10 * * * * /home/Yordan/sync_gdrive.sh

# * * * * * command to be executed
# - - - - -
# | | | | |
# | | | | +- - - - day of week (0 - 6) (Sunday=0)
# | | | +- - - - - month (1 - 12)
# | | +- - - - - - day of month (1 - 31)
# | +- - - - - - - hour (0 - 23)
# +--------------- minute

Saturday, January 21, 2017

DLink DNS-320L - Replacing fan


From: DLINK Forum
http://forums.dlink.com/index.php?topic=53051.30



I also decided to replace the noisy fan yesterday. This is what I did:

 1. Cut a hole on the top cover.
 2. Remove original fan.
 3. Attach new fan on the top...
    http://noctua.at/en/products/product-line-redux/nf-r8-redux-1200
 4. Switch polarity on the fan's connector.

The new fan has ultra low noise. Auto fan control works too. However, I set it to run "High" constantly. The new fan sucks air out of the chassis, so cold air flows in at the bottom/back (where the original fan was). When it is in idle, it is around 33/34 C degrees.



Gelid Silent 8 (fn-sx08-16)



If I put ramsinks:
http://forum.dsmg600.info/viewtopic.php?id=6574

--> The main board with ramsinks = no temp change!!