Attiny : arduino's little brother Arduino is a very good card but if you need a very smaller card size or if you don't need alls pins and less memory, Attiny is a good alternative VCC =Voltage is 2.7-5.5 v Notice : Pins output high voltage is 4.3 volts with a Vcc of 5 volts. For 3.3 Vcc, pins o utput voltage is 2.5 V So be carefull, this is not 3.3 volts like Arduino How to program Attiny To program attiny, just use Arduino IDE. To do this, you will have to connevt Attiny to arduino. Arduino will now be used as bridge Initial step Upload ArduinoISP sketch on your arduino : Select card Arduino Uno Load sketch Samples > 11.ArduinoISP Tips : be sure to unplug all wires before to upload the sketch First step First time and only once, you have to write bootloader on Attiny : Choose 'Arduino as ISP' as the programmer prior to burning the Arduino bootloader onto the ATtiny Select card ATtinyXX Verify Board Properties...
ESP-01 Esp01 is a very small esp8266. Less pins and small size. So it is wonder for iot projects But ESP-01 consumption is around 90 mAh. So you can't power it with a battery because lifetime will be only few days. To decrease consumption you have to put esp01 in a sleep mode. Best mode is deep sleep mode which reduce consumption to less than 1 uAh. Power consumption - See datasheet Standby ~ 0.9uA Running ~60-215mA, Average ~ 80mA How to power To power ESP-01 you have to use a 3.3v battery connect pin 1-GND to ground connect pin 8-VCC and to 3.3v Found a 3.3v battery is not easy. A solution is to use 18650 battery 3.7v (or 3x AA) and drop voltage to 3.3v. To drop voltage, you can use a LDO like MCP1700-3302E/TO VIN : 2.3-6v VOUT : 3.3v Goto Deep Sleep mode To use deep sleep mode, it is pretty easy. Just add ESP.deepsleep(5*1000000) in your code to go to sleep for 5 seconds. After 5s ESP will wakeup and restart and run setup() again ...
This is a tutorial on how to install and start an OpenVPN connection when your Linux system boots. Install OpenVPN sudo apt-get install openvpn copy your config files provides from your VPN to /etc/openvpn save your credentials in a file and modify your .ovpn config file like described below start and test it using sudo openvpn --config myvpn.ovpn use traceroute to see if vpn is working. Launch traceroute before connecting vpn and after. You should see differences in routes. Auto-connect OpenVPN via terminal 1. Create auth.txt file inside /etc/openvpn directory via this command: sudo gedit /etc/openvpn/auth.txt Fill it with your VPN credentials: username password Save it. 2. Then open the file which you are using to establish a connection: sudo gedit /etc/openvpn/myvpn.ovpn And change this line: auth-user-pass into auth-user-pass auth.txt Save the file and change its name: sudo mv /etc/openvpn/myvpn.ovpn /etc/openvpn...
Commentaires
Enregistrer un commentaire