Sunday 17 February 2019

How to start Android Terminal Emulator as root

UPDATE: This method seems to be causing the app to crash for some folks. I haven’t used the feature in a while and am unaware of a workaround.


You probably know the su or sudocommands on Linux, but those don’t seem to work in the Android terminal.* Fortunately, you can get around that via a terminal emulator setting. Here’s how to do that:

Install Android Terminal Emulator.


Open the above.


Tap the options menu icon.


Tap Preferences.


Scroll down to Shell.


Tap Command line.


Enter /system/xbin/su -c "/system/xbin/bash -" as shown below.

One thing Android does have in common with desktop Linux is even the simplest things are always unnecessarily complicated for the sake of engineering ideological purism.


Tap OK.


Back out of Preferences.


Close the terminal window.


Restart the app.


Approve the root permissions request that pops up.


You’ll now have superuser permissions every time you start the terminal.

Thanks bitmaster2000 for the method.

 

*I suspect the main reason for this is Android doesn’t handle user/administrator/root accounts in the same manner desktop Linux does. On Android every app is a user in Linux parlance, while Android users are something else entirely.

Source: https://www.google.com/amp/s/jdrch.wordpress.com/2016/04/26/how-to-start-android-terminal-emulator-as-root/amp/

Friday 10 March 2017

Charge Controller Design

Design for charge controller:


Pcb design:
  • Bottom Side:

  • Component side:

Simulation Result:

Pcb design files: Download here

Wednesday 28 September 2016

Sharing laptop's Internet with an Android device via an USB cable.

Step1. Connect your Android device to the laptop with an USB cable.
Step2. Tap "Settings" >> Tap "More..." >> Tick the "USB tethering" option. >> Choose a version of windows for your computer, then tap"next" >> tap "Done".
Step3. Share your laptop's Internet connection with an Android device via an USB cable. 
            a. Open the " Network and Sharing Center". 
            b. Make sure the naming of the Android device.
            c. Click the Internet which you want to share with the Android device.
            
              
             d. Click [Properties]
            
             
             e.
              1. Click [Sharing]
              2. Check [Allow other network users to connect through this computer's Internet connection]. 
              3. Select the naming of the Android device from step3.
              4. Click [OK]
             

Step4. You should be able to browse the internet on your Android device. 
             

Note: This information may not suitable for all the products from the same category/series. Some of the screen shots and operations could be different from the software versions.

Tuesday 20 September 2016

Arduino

What is Arduino?


Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a Twitter message - and turn it into an output - activating a motor, turning on an LED, publishing something online. You can tell your board what to do by sending a set of instructions to the microcontroller on the board. To do so you use the Arduino Programming Language (based on Wiring), and the Arduino Software(IDE), based on Processing.

Why Arduino?


Thanks to its simple and accessible user experience, Arduino has been used in thousands of different projects and applications. The Arduino software is easy-to-use for beginners, yet flexible enough for advanced users. It runs on Mac, Windows, and Linux.


There are many other microcontrollers and microcontroller platforms available for physical computing. Parallax Basic Stamp, Netmedia's BX-24, Phidgets, MIT's Handyboard, and many others offer similar functionality. All of these tools take the messy details of microcontroller programming and wrap it up in an easy-to-use package. Arduino also simplifies the process of working with microcontrollers, but it offers some advantage for teachers, students, and interested amateurs over other systems.

How do I use Arduino?Website

See the getting started guide. If you are looking for inspiration you can find a great variety of Tutorials on Arduino Project Hub.

Website:-  Arduino.cc