Develop innovative hardware-based projects in C
The Raspberry Pi has traditionally been programmed using Python. Although this is a very powerful language, many programmers may not be familiar with it. C on the other hand is perhaps the most commonly used programming language and all embedded microcontrollers can be programmed using it.
The C language is taught in most technical colleges and universities and almost all engineering students are familiar with using it with their projects. This book is about using the Raspberry Pi with C to develop a range of hardware-based projects. Two of the most popular C libraries, wiringPi and pigpio are used.
The book starts with an introduction to C and most students and newcomers will find this chapter invaluable. Many projects are provided in the book, including using Wi-Fi and Bluetooth to establish communication with smartphones.
Many sensor and hardware-based projects are included. Both wiringPi and pigpio libraries are used in all projects. Complete program listings are given with full explanations. All projects have been fully tested and work.
The following hardware-based projects are provided in the book:
Using sensors
Using LCDs
I²C and SPI buses
Serial communication
Multitasking
External and timer interrupts
Using Wi-Fi
Webservers
Communicating with smartphones
Using Bluetooth
Sending data to the cloud
Program listings of all Raspberry Pi projects developed in this book are available on the Elektor website. Readers can download and use these programs in their projects. Alternatively, they can customize them to suit their applications.
Dieses Buch richtet sich an jeden, der seinen Raspberry Pi mit dem Windows 10 IoT Core betreiben will. Wie das geht, zeigt der Autor mit dem Entwicklungssystem Visual Studio und Visual Basic als Programmiersprache.
Inzwischen gibt es eine große Auswahl an kleinen Sensor-Modulen, die problemlos an den Raspberry Pi angeschlossen werden können – auch wenn sie mitunter für andere Systeme beworben werden, wie etwa für den Arduino. Nicht ohne Grund: Einplatinencomputer sind ohne zusätzliche Peripherie für Elektroniker ziemlich nutzlos. Sie stellen zwar die Rechenleistung und ein Betriebssystem bereit, können aber so gut wie gar nicht mit ihrer Umgebung kommunizieren. Damit ein Computer auch Einfluss auf seine Umwelt nehmen kann, sind Sensoren und Aktoren erforderlich, die von einer Software gesteuert werden, die man selber erstellen kann.
Als Einstieg in die Materie wird in diesem Buch auf das auch bei Elektor erhältliche 37 Module umfassende Sensor-Kit zurückgegriffen. In diesem populären Set sind die Sensoren auf einer kleinen Platine montiert und mit Steckverbindern ausgestattet, was den Anschluss via Breadboard oder Drahtbrücken vereinfacht. Mit den auch für Einsteiger einfach anzuwendenden Sensor-Modulen lassen sich schnell erste Erfolge erzielen, ohne dass man groß in die Materie der Elektronik einsteigen muss.
Die Funktionsweise und Beschaltung der einzelnen Sensoren wird ausführlich erklärt und ihre Verwendung durch die gut dokumentierten Visual Basic-Beispielprogramme leicht nachvollziehbar gemacht.
Aus der Reihe "Stromversorgung ohne Stress" (Band 2)
Anwendungen, Applikationen und Bauanleitungen
Eines haben alle elektronischen Schaltungen und Geräte gemeinsam: Ihre Funktion steht und fällt mit der Stromversorgung. Schon deshalb muss man dieser Baugruppe besondere Aufmerksamkeit widmen.
Beschäftigte sich Band 1 mit den Grundlagen und Schaltungen der Stromversorgungstechnik für elektronische Geräte aus der Praxis, bietet der zweite Band neben direkt verwertbaren Grundlageninformationen eine Sammlung verschiedener praktischer Anleitungen und Applikationen sowie Bauanleitungen. Damit ist das Buch für jeden ambitionierten Elektronik-Praktiker eine wertvolle Bereicherung seiner Gestaltungsmöglichkeiten.
Aus dem Inhalt:
Kapitel 1 • Messungen an Spannungs- und Stromquellen
Kapitel 2 • Mobile Spannungs- und Stromquellen
Kapitel 3 • Netzbetriebene Versorgungsgeräte
Kapitel 4 • Verschiedene Themen zur Stromversorgung, unter anderem auch zur drahtlosen Energieübertragung
Technology is constantly changing. New microcontrollers become available every year and old ones become redundant. The one thing that has stayed the same is the C programming language used to program these microcontrollers. If you would like to learn this standard language to program microcontrollers, then this book is for you!
ARM microcontrollers are available from a large number of manufacturers. They are 32-bit microcontrollers and usually contain a decent amount of memory and a large number of on-chip peripherals. Although this book concentrates on ARM microcontrollers from Atmel, the C programming language applies equally to other manufacturer’s ARMs as well as other microcontrollers.
Features of this book
Use only free or open source software.
Learn how to download, set up and use free C programming tools.
Start learning the C language to write simple PC programs before tackling embedded programming - no need to buy an embedded system right away!
Start learning to program from the very first chapter with simple programs and slowly build from there.
No programming experience is necessary!
Learn by doing - type and run the example programs and exercises.
Sample programs and exercises can be downloaded from the Internet.
A fun way to learn the C programming language.
Ideal for electronic hobbyists, students and engineers wanting to learn the C programming language in an embedded environment on ARM microcontrollers.
Learn to use Python productively in real-life scenarios at work and in everyday life
If you have mastered the basics of Python and are wanting to explore the language in more depth, this book is for you. By means of concrete examples used in different applications, the book illustrates many aspects of programming (e.g. algorithms, recursion, data structures) and helps problem-solving strategies. Including general ideas and solutions, the specifics of Python and how these can be practically applied are discussed.
Python 3 for Science and Engineering Applications includes:
practical and goal-oriented learning
basic Python techniques
modern Python 3.6+ including comprehensions, decorators and generators
complete code available online
more than 40 exercises, solutions documented online
no additional packages or installation required, 100% pure
Python Topics cover:
identifying large prime numbers and computing Pi
writing and understanding recursive functions with memorisation
computing in parallel and utilising all system cores
processing text data and encrypting messages
comprehending backtracking and solving Sudokus
analysing and simulating games of chance to develop optimal winning strategies
handling genetic code and generating extremely long palindromes
Downloads
Software
Le OWON XDM1241 est un multimètre de table numérique True RMS rapide et de haute précision, doté d'un écran LCD haute résolution de 3,5 pouces et de 50000 points. Sa précision en tension continue est de 0,05% et il peut mesurer jusqu'à 65 valeurs par seconde.
Caractéristiques
Ecran LCD haute résolution de 3,5 pouces (480x320 pixels)
55000 points, précision de la tension continue jusqu'à 0,05%.
Jusqu'à 65 lectures par seconde
Affichage double ligne pris en charge
Analyse des tendances accessible en mode graphique
Mesures AC True RMS (bande passante : 20 Hz – 1 kHz)
Support SCPI : Commande à distance du multimètre à l'aide d'un logiciel PC via le port USB
Spécifications
Plage de mesure
Résolution
Précision
Tension continue
50,000 mV
0,001 mV
0,1% +10
500,00 mV
0,01 mV
0,05% +5
5,0000 V
0,0001 V
0,05% +5
50,000 V
0,001 V
0,05% +5
500,00 V
0,01 V
0,1% +5
1000,0 V
0,1 V
0,1% +10
Tension alternative
500 mV~750 V
20 Hz~45 Hz
1% +30
45 Hz~65 Hz
0,5% +30
65 Hz~1 KHz
0,7% +30
Courant continu
500 uA
0,01 uA
0,15% +20
5000 uA
0,1 uA
0,15% +10
50 mA
0,001 mA
0,15% +20
500 mA
0,01 mA
0,15% +10
5 A
0,0001 A
0,5% +10
10 A
0,001 A
0,5% +10
Courant alternatif
500 uA~500 mA
20 Hz~1 KHz
0,5% +20
5 A-10 A
1,5% +20
Résistance
500 Ω
0,01 Ω
0,15% +10
5 KΩ
0,0001 KΩ
0,15% +5
50 KΩ
0,001 KΩ
0,15% +5
500 KΩ
0,01 KΩ
0,15% +5
5 MΩ
0,0001 MΩ
0,3% +5
50 MΩ
0.001 MΩ
1% +10
Fréquence
10,000 Hz~60 MHz
/
±(0,2% +10)
Capacité
50 nF~500 uF
/
2,5% +10
5 mF~50 mF
5% +10
Diode
3,0000 V
0,0001 V
/
Continuité
1000 Ω
0,1 Ω
Seuil réglable
Température
Type K, PT100
Affichage maximum
55 000 comptes
Fonction d'enregistrement des données
Durée d'enregistrement
15ms~9999,999s
Longueur d'enregistrement
1,000 points
Affichage
Ecran LCD TFT 3,5" (480x320 pixels)
Alimentation
Batterie au lithium via USB-C ou entrée 5 V CC
Dimensions
200 x 88 x 150 mm
Poids
environ 0,5 kg
Inclus
1x OWON XDM1241 Multimètre
2x Cordons de mesure
1x Câble USB
1x Cordon USB à CC
1x Manuel
Téléchargements
Manuel de programmation
Logiciel PC
La FNIRSI DWS-200 est une puissante station de soudage intelligente de 200 W, idéale pour les applications de soudage électronique. Alimenté par une alimentation à découpage, il fonctionne sans problème avec une large plage de tension d'entrée de 100 à 240 V. La station offre une plage de température réglable de 100°C à 450°C et permet de basculer facilement entre °C et °F.
Pour améliorer l'efficacité, il prend en charge jusqu'à trois valeurs de température prédéfinies et peut se connecter à un support de fer à souder pour l'activation du mode veille. La station dispose également d'un mode de courbe de température dynamique pour la surveillance des données en temps réel, garantissant des performances précises et cohérentes dans les tâches de soudage exigeantes.
Features
Puissance de sortie maximale de 200 W, permettant un chauffage rapide
Large entrée de tension adaptative de 100 à 240 V
Écran TFT couleur HD de 2,8 pouces avec contrôle intelligent
Plusieurs groupes prédéfinis pour basculer rapidement entre différents paramètres
Prend en charge les types de poignées à souder F245 et F210, offrant ainsi une flexibilité pour différentes applications de soudage
Mode veille en temps réel pour prolonger la durée de vie de la panne à souder
Surveillance multimode en temps réel de l'état de l'alimentation et de la température, améliorant ainsi la sécurité et la précision
Spécifications
Puissance maximale
200 W (maximum)
Plage de température
100°C~450°C
Écran
Écran couleur TFT HD de 2,8 pouces
Temps de chauffage
1 seconde
Temps de fusion
3 secondes
Tension d'entrée
100-240 V (CA)
Fusible d'entrée
3A
Type de poignée à souder
F245
Dimensions (station)
156 x 96 x 103 mm
Poids (station)
475 g
Inclus
1x FNIRSI DWS-200 station de soudage
1x Poignée à souder F245
6x Pannes à souder (B, KU, K, C2, I, JS)
1x Câble de connexion
2x Coups de main
1x Câble d'alimentation (UE)
Téléchargements
Manual
Firmware V1.3
L’OWON SDS1102 est un oscilloscope numérique de table abordable qui combine de solides performances avec des fonctions de mesure essentielles. Cet oscilloscope à 2 canaux offre une bande passante de 100 MHz, une fréquence d’échantillonnage de 1 GS/s, un écran LCD de 7 pouces et une profondeur mémoire de 10 kpts, ce qui en fait un choix pratique pour les tests électroniques quotidiens, le dépannage et l’enseignement.
Le SDS1102 dispose d’un système de déclenchement simplifié avec déclenchement sur niveau et sur front, ce qui facilite la capture et l’analyse des signaux courants. Il est conçu pour les applications qui ne nécessitent pas une grande profondeur mémoire ni des fonctions de déclenchement avancées, et offre une solution simple et économique pour l’analyse de signaux de base.
Caractéristiques
Bande passante : 100 MHz
2 voies
Taux d'échantillonnage : 1 GS/s
Boîtier ultra-fin
Écran LCD haute résolution de 7 pouces
Prise en charge de SCPI et LabVIEW
Spécifications
Bande passante
100 MHz
Échelle horizontale (s/div)
5 ns/div - 1000 s/div
Canal
2
Sensibilité verticale
5 mV/div - 5 V/div (en entrée)
Précision du Gain DC
3%
Résolution Verticale(A/D)
8 bits (2 canaux simultanément)
Entrée
Impédance d'entrée
1 MΩ, 10 pF
Couplage d'entrée
AC, DC, GND
Tension d'entrée maximale
±400 V, CATI, CATII
Sondes passives
х1; х10
Facteur d'atténuation de la sonde
х1; х10; х100; х1000
Système de déclenchement
Mode de déclenchement
Auto, Normal, Single
Type de déclenchement
Edge, Video
Source de déclenchement Edge
CH1, CH2
Video Trigger
Type d'échantillonnage
Real-time
Taux d'échantillonnage
1 GS/s
Taux d'échantillonnage Equivalent
No
Longueur d'onde
10K pts
Interpolation
sin(x)/x
Measurement and Mathematical Treatment System
Mesure automatique
Vpp, Vavg, RMS, Frequency, Period, Vmax, Vmin, Vtop, Vbase, Width, Overshoot, Pre-shoot Rise time, Fall time, +Width, -Width, +Duty, -Duty, Delay A→B, Delay A→B, area, cycle area
Fonctions mathématiques
Addition, Soustraction, Multiplication, Division, FFT
Caractéristiques générales
Type d'affichage
7" color LCD
Résolution d'affichage
800 x 480
Puissance
100-240 V, 45-440 Hz, <15 W
Dimensions
301 x 70 x 152 mm
Poids
1,1 kg
Inclus
1x OWON SDS1102 Oscilloscope
2x Sondes d'oscilloscope
1x Réglage de la sonde
1x Cordon d'alimentation secteur
1x Câble USB
1x CD-Rom
1x Guide rapide
Télechargements
Quick Guide
Manual
PC Software
SCPI Commands