XMEN BLOGGER: March 2017

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]#