Welcome to Part 2 of this guide. To store our temperature values we will need a database, we will use MySQL for this. To access the database online we will need a web server and a script to run on it, Apache and PHP respectively.…
Over the last few years I have been teaching a class called Mechatronics that combines together engineering and robotics with a goal for students to build real world technology to solve a problem. In building student learning for open ended tasks, I needed a project that could combine many skills together. I had previously used Arduino’s to enable a programmable device with I/O but I was happy bring in other technologies. I had also been coding more and more with Swift and making Apps with Xcode. As my students had also begun their journey with App Development in other classes, I thought it would be a great opportunity to leverage this knowledge and see how I could show live data from a temperature sensor in an App. So this lead me to the path of using a Raspberry Pi to become the hub of the project as I could basically build a database and web server that stored and shared data collected from a temperature sensor. This data could then be shown via an iOS app.
Essentially this series of guides will cover:
- Setting up a DS18B20 temperature sensor
- Writing a Python script to read the sensor
- Setup of LAMP. Linux, Apache, MySQL & PHP for the webserver
- Writing the values from the temp sensor to the MySQL database
- Writing PHP scripts to access the MySQL database from a web browser
- Outputting the results as JSON for a mobile app to read.
- An simple iOS app to read our temp sensor values and display them
Now for the second part in a series of movies explaining how to make your own AR app using Live Photo’s. By the end of this guide you will have an app that will detect the photo and start playing the animated movie over the top. Don’t forget to grab your resources from the first guide and also print your photos.
This is the first part in a series of movies explaining how to create your own AR app using Live Photo’s . Have fun following along and I’d love to hear how you go.
The resources for the app are available via https://www.dropbox.com/s/cc3yap1lol0ew7x/AR%20Images.zip?dl=0
At the end of last year I spent some time learning how to create an iOS app using the Augmented Reality tools available in Xcode. Below is a tweet I posted at the time to refresh your memory (well, for those who follow me)
What I have learned from this experience is that AR development is really not too complicated in iOS, many of the intelligent work is done behind the scenes. So to just place an object into an AR scene you really just need to know where in the space around you want to add it and then drop it in. The default template for an iOS AR app already has a “Jet Plane” object and without changing a line of code you get a working app. Here is what it looks like:
From this point all you need to do is define points in 3D space and add text, images and movies.
The example from the Tweet I made follows a process where the app “looks” for objects that match the size of an A4 page with the same contents of one of the images. It then attaches a node of the same dimensions over the top and then plays a movie which matches the photo inside the node. I later added text that sits above the object and moves with it.
Once I made the basic app I saw the possibilities to me of how this could be used at school. I believe this a great template for a AR tour of a school. Meeting the requirements of being a real world problem and solving a problem that affects the community, students could easily come up with their own version of using the app.
Mathematically speaking I also appreciate the complexities in understanding how to place the objects inside the AR space. The technology understands distances and angles perfectly so it become a great activity in reinforcing these concepts.
So over the coming week or so I will be releasing 5 movies that explain the process of creating the App. The best part is that the app works well after covering 2 of them, so it is quick at getting some buy in. The final 3 movies go through the process of adding some polish.
I look forward to seeing other educators and students having a go and seeing what they come up with.
This is a movie covering the fourth part of App Development with Swift Chapter 3 Section 6
This is a movie covering the third part of App Development with Swift Chapter 3 Section 6
This is a movie covering the second part of App Development with Swift Chapter 3 Section 6
This is a movie covering the first part of App Development with Swift Chapter 3 Section 6
So since my last post where I discussed my recommendations for a good podcasting microphone I have received a couple of orders from Amazon.
First is a shock mount which is designed to remove some of the vibrations that may occur from moving the microphone to bumping the desk.
This is the one I grabbed:
The only problem was that I didn’t check the sizes so I needed to 3D print a part so that the microphone sat comfortably.
I also purchased a foam microphone wind protector to help soften the noise of the microphone.
This is the one I grabbed:
Together they all look pretty cool: