Posts

Showing posts from 2019

Arduino Uno - LEDs sequential lightings

Image
This is the first project on Arduino UNO and the idea is to create a sequential lighting of LED . Requirement : Arduino UNO Board JumperCable: 4 LEDs: 4 2 Ohm resistors : 4 Bread Board : 1 The connection is show as per the video below The White wire is connected to the GND pin on Arduino Board and -ve on the Bread Board The Yellow wire is connected to PIN 10 on the Arduino Board  The Orange wire is connected to PIN 13 on the Arduino Board  The Red wire is connected to PIN 12 on the Arduino Board  The Gray wire is connected to PIN 11 on the Arduino Board   The 2 ohm resistors are connected from the -ve pin and the line 'E' on the bread board The Leds have one leg longer the the other . This leg is the +ve end  and the -ve end is connected  along the resistor line Download Sketch IDE for Arduino project and run the below program /* A simple program to sequentially turn on and turn off 3 LEDs */  int LED_GREEN = 13; int LED_YELLO

Oauth 2.0 Authorization using OWIN OAuthon ASP.NET Web API

This solution was developed by Ole , it can be found in his blog https://olepetterdahlmann.com/2016/08/08/implement-an-oauth-2-0-authorization-server-using-owin-oauth-middleware-on-asp-net-web-api/ 1) Create an empty Web project with "Web API" as template and "No Authentication" as authentication mechanism 2) Install the below dlls Microsoft.AspNet.WebApi.Owin Microsoft.Owin.Host.SystemWeb Microsoft ASP.NET Identity Owin Microsoft.Owin.Security.Cookies Microsoft.AspNet.Identity.Owin Microsoft.Owin.Security.OAuth Update Newtonsoft.Json" version="12.0.1" 3) Package Json should be as below Package.config set up will be as below <package id="Microsoft.AspNet.Identity.Core" version="2.2.2" targetFramework="net461" /> <package id="Microsoft.AspNet.Identity.Owin" version="2.2.2" targetFramework="net461" /> <package id="