background preloader

Visual C# .NET for Complete Beginners - a free programming course

Visual C# .NET for Complete Beginners - a free programming course
Related:  GP

Csharp CmdMessenger The CmdMessenger messaging library has both an Arduino and .NET+Mono compatible C# implementation The library implements Commands that can be sent or received. Multiple arguments can be appended to commands. Callback functions can be triggered on received commands. You can find the CmdMessenger Playground page here: CmdMessenger C# with Arduino on Facebook C# with Arduino on Facebook .Net2.0 gives you the easy to use System.IO.Ports so a programm that writes everything you type to the arduino is quickly written : using System; using System.IO.Ports; namespace test { class Program { static void Main(string[] args) { SerialPort port = new SerialPort("COM4", 9600); port.Open(); while (true) { String s=Console.ReadLine(); if (s.Equals("exit")) { break; } port.Write(s+'\n'); } port.Close(); Detect Arduino com port and use Serial Comms C# with Arduino Duemilanove + Led On/Off/Pwm Control C# + Arduino Duemilanove + RGB Led Control ArduinoLibrary: C# library Source code (in progress).

C++ Language This website uses cookies. By continuing, you give permission to deploy cookies, as detailed in our privacy policy. ok Search: Not logged in C++ Language These tutorials explain the C++ language from its basics up to the newest features introduced by C++11. Introduction Compilers Basics of C++ Program structure Compound data types Classes Other language features C++ Standard Library Input/Output with files Tutorials C++ LanguageAscii CodesBoolean OperationsNumerical Bases C++ Language Introduction:CompilersBasics of C++:Program structure:Compound data types:Classes:Other language features:Standard library:Input/output with files

Hotel Room Booking Tutorial (ASP.NET, C#, VB, SQL Server) | DayPilot Code ASP.NET web application for managing hotel room reservation. Includes sample code in C# and VB. Sample SQL Server database. This tutorial shows how to use DayPilot ASP.NET Scheduler to build a hotel room booking application. It's a sample ASP.NET web application with support for room status (clean, dirty, cleanup), reservation status (new, confirmed, arrive, checked-out, expired). See also the JavaScript/PHP version of this tutorial: HTML5 Hotel Room Booking (JavaScript/PHP) Online Demo Demo: Hotel Room Booking Tutorial License Licensed for testing and evaluation purposes. Hotel Reservation Features Colors indicating the reservation phaseRoom status (dirty, cleanup, ready)Rules for reservation updates (overlap forbidden, past reservations)Filters for visible rooms (based on a drop-down list)Modal dialog for event creating and editingFlash notification about user action result Requirements .NET Framework 4.0 or higherVisual Studio 2010 or higher (optional) Database Setup RoomReservation Usage:

iOS App Programming Guide: About iOS App Programming This document is the starting point for creating iOS apps. It describes the fundamental architecture of iOS apps, including how the code you write fits together with the code provided by iOS. This document also offers practical guidance to help you make better choices during your design and planning phase and guides you to the other documents in the iOS developer library that contain more detailed information about how to address a specific task. The contents of this document apply to all iOS apps running on all types of iOS devices, including iPad, iPhone, and iPod touch. At a Glance The starting point for any new app is identifying the design choices you need to make and understanding how those choices map to an appropriate implementation. Translate Your Initial Idea into an Implementation Plan Every great iOS app starts with a great idea, but translating that idea into actions requires some planning. UIKit Provides the Core of Your App Apps Require Some Specific Resources Prerequisites

Fingerprint Sensor [中文] Introduction The Finger Print Sensor is one optical fingerprint sensor which will make fingerprint detection and verification adding super simple.There's a high powered DSP chip AS601 that does the image rendering, calculation, feature-finding and searching. You can also enroll new fingers directly - up to 162 finger prints can be stored in the onboard FLASH memory. There's a red LED in the lens which will light up during taking photos so that you know its working condition. It is easy to use and by far the best fingerprint sensor you can get. Model:SEN04172P Specification Supply voltage: 3.6~6.0 V Operating current(Max) : 120 mA Fingerprint imaging time: 1.0 S Match Mode: Compare Mode 1:1 Search Mode: 1:N Storage capacity: 162 templates False Acceptance Rate : 0.001% (Security level 3) False Reject Rate :1.0% (Security level 3) Baud rate :9600, 19200, 28800, 38400, 57600bps (default is 57600) Interface:TTL Serial Work Temperature:-20 ~ +50 ℃ Interface Demonstration Resource

Arduino and Java | silveira neto Arduino is a free popular platform for embedded programming based on a simple I/O board easily programmable. Interfacing it with Java allow us to create sophisticated interfaces and take advantages from the several API available in the Java ecosystem. I’m following the original Arduino and Java interfacing tutorial by Dave Brink but in a more practical approach and with more details. Step 1) Install the Arduino IDE This is not a completely mandatory step but it will easy a lot our work. Our program will borrow some Arduino IDE libraries and configurations like which serial port it is using and at which boud rate. Step 2) Prepare your Arduino Connect your Arduino to the serial port in your computer. Make sure your Arduino IDE is configured and communicating well if your Arduino. Step 3) Install RXTX Library We will use some libraries to acess the serial port, some of them relies on binary implementations on our system. sudo apt-get install librxtx-java Step 4) Start a new NetBeans project

Arduino Character LCD Tutorial See the LCD Shield for Arduino for a pre-assembled LCD+ Keypad shield. Your Arduino has things to tell you. One of the easiest ways to let it communicate is to attach a character LCD. These LCD modules are a lot of fun, however they can be tricky to get working right. Many a hacker has spent hours trying to get one working, only to suffer through frustration and humiliation. Hacktronics is here to help. The LCD modules covered here are based on the very popular HD44780 controller. Software used in this tutorial can be downloaded here: Arduino LCD Software Example Hardware used in this tutorial: LCD HackPack, 16x2 or 20x4 (includes LCD module, header pins, small solderless breadboard, wire jumpers, and contrast resistor) Arduino Uno, Mega, or something compatible Instructions: If this is your first Arduino project, first go through our “Arduino: Getting Started” and “Beginning Solderless Breadboards” tutorials. Use your solderless breadboard and wire jumpers to make these connections: Software

Pushbutton Learning Examples | Foundations | Hacking | Links The pushbutton is a component that connects two points in a circuit when you press it. The example turns on an LED when you press the button. We connect three wires to the Arduino board. When the pushbutton is open (unpressed) there is no connection between the two legs of the pushbutton, so the pin is connected to 5 volts (through the pull-up resistor) and we read a HIGH. /* Basic Digital Read * ------------------ * * turns on and off a light emitting diode(LED) connected to digital * pin 13, when pressing a pushbutton attached to pin 7.

Creating a simple Database Application in NetBeans In this tutorial we create a simple database Java application in Netbeans. The database contains 2 tables: AuthorsBooks The Authors table is independent; that is, an author can exist in our database without a book. The Books table is a dependent table; that is, a book cannot exist without an author in our database. 1. We start of by creating the database using JavaDB, also known as Derby, which is an embedded Java database. The following video demonstrates how to do this. Create an database using JavaDB from Bilal Kathrada on Vimeo. The SQL to create the AUTHORS table follows: CREATE TABLE AUTHORS ( id INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY, firstname VARCHAR(50), surname VARCHAR(50), email VARCHAR(50), CONSTRAINT author_pk PRIMARY KEY (id) ); The SQL to create the BOOKS table follows: CREATE TABLE BOOKS ( id INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY, title VARCHAR(50), edition VARCHAR(50), author INTEGER, CONSTRAINT book_pk PRIMARY KEY (id) ); 2. 3. 4. 5. 6. Conclusion

Tutorial on how-to develop the Java desktop GUI with connection to Java DB Derby database applications using NetBeans the Java IDE Pre requirement For this tutorial you need to have the following software installed on your computer: NetBeans IDE 6.x.x (download) and install.Java Standard Development Kit (JDK) version 5.0 or 6.0 (download).Java DB database server (Java DB is included with JDK 6).The SQL script that is car.sql.The CarPreview project, which is CarPreview.zip. This tutorial shows how to create a desktop Java application through which you can access and update a database. The tutorial takes advantage of support in NetBeans IDE 6.0 for the following technologies: The Java Persistence API (JPA), which helps you use Java code to interact with databases.Beans Binding (JSR-295), which provides a way for different JavaBeans components to have property values that, are synchronized with each other. We will create a database CRUD (create, read, update, delete) application with a custom component used for visualizing the data (car design preview). Setting Up the Database To manually register Java DB in the IDE

Calculation of Cable Data Calculated Output: Cable Diameter, Total Capacitance (uF), Total Charging Current (Amps), Charging Vars per phase (kVAR), Charging Reactance (Mohm*1000 ft), Inductance (mH), Reactance (ohms), AC Resistance, X/R ratio, and Surge Impedance (ohms). Basis of Calculation Capacitance of Cables, Charging Current, and Charging Reactive Power The capacitance of a one conductor shielded cable is given by the formula below: Where: Inductance and Reactance of the Cable The inductance and inductive reactance of three single phase cables is provided by the formulas below. Cable Resistance at Operating Temperature The resistance of the conductor is provided at 20 deg.C in Table-1. Surge Impedance The surge impedance of the cable can be calculated with the following formula:

Characteristic Impedance of Cables at High and Low Frequencies Characteristic Impedance of Cables at High and Low Frequencies By Marco Pavincich Ref:- RSI, Times Microwave, Belden Companies The increasing use of electrical pulses in the transmission of data by cable has resulted in a need for a better understanding of the electrical characteristics of a cable. Many system specifications state that the cables used shall have a certain characteristic impedance, specified in ohms. Any cable-maker's catalogue will list the characteristic impedance values of most coaxial cables, which usually range from 50 to 95 ohms. (Equation 1) This relationship holds true whether talking about direct current (DC) or alternating current (AC). Figure 1. Figure 2. (Equation 2) Where: R = The series resistance of the conductor in ohms per unit length. (Equation 3) Where: R = DC resistance. Figure 3. (Equation 4) Note that j2(3.1416)f appears in both numerator and denominator of Equation 4 and, therefore, can be cancelled leaving: (Equation 5) Figure 4. Figure 5. Figure 6.

Related: