Saturday, April 2, 2016

Controlling DC motor by means of direction of rotation and torque/power insertion

For running a DC motor in both direction (in our case CRS Robotics gripper) you need to have a bridge to be able to switch the polarity of the source. For this purpose I have used  EVAL6206PD board which not only provides a protected bridge but also it has PWM current control for both of its output independently.

The two bridges are designated A and B and their output pins designated as OUT1A, OUT2A, OUT1B, and OUT2B. These outputs are controlled independently by logic inputs IN1A, IN2A, IN1B, and IN2B respectively.

A logic high or low on any of these inputs will drive its corresponding output to the positive supply rail or to ground. Both of the A outputs will be forced to an off (high impedance) state if the ENA pin is taken logic low, as will the B outputs if ENB is taken low. Each bridge also has an analog control signal, VREFA and VREFB, which control the current.

Tuesday, December 22, 2015

How to Setup a VPN (PPTP) Server on Debian Linux

1:
 
sudo apt-get install pptpd
 
2:
 
sudo nano /etc/pptpd.conf
 
3: Add server IP and client IP at the end of the file. You can add like below:
 
 localip 192.168.2.100
remoteip 192.168.2.101-200
 
localip is the ip address of the server in the network and remoteip is the range you specify for vpn clients to join your network.

Monday, December 21, 2015

How to settup HTTP Proxy server in Ubuntu

Squid - Proxy Server

Squid is a full-featured web proxy cache server application which provides proxy and cache services for Hyper Text Transport Protocol (HTTP), File Transfer Protocol (FTP), and other popular network protocols. Squid can implement caching and proxying of Secure Sockets Layer (SSL) requests and caching of Domain Name Server (DNS) lookups, and perform transparent caching. Squid also supports a wide variety of caching protocols, such as Internet Cache Protocol (ICP), the Hyper Text Caching Protocol (HTCP), the Cache Array Routing Protocol (CARP), and the Web Cache Coordination Protocol (WCCP).
The Squid proxy cache server is an excellent solution to a variety of proxy and caching server needs, and scales from the branch office to enterprise level networks while providing extensive, granular access control mechanisms, and monitoring of critical parameters via the Simple Network Management Protocol (SNMP). When selecting a computer system for use as a dedicated Squid caching proxy server for many users ensure it is configured with a large amount of physical memory as Squid maintains an in-memory cache for increased performance.