The image feed program uses React Native to make an app. This app creates a fake social media platform called “Chickengram”. On one page, you can create profiles by entering image URIs and typing a name.
On another page, you can post things to the feed itself. You can enter an image URI and type a caption. Then there is the main page. Upon loading the app, you will find that Hatsune Miku has posted some fanart of Knuckles the Echidna holding a bomb. The art is so horrific that the post has a humorous -1 likes and Knuckles himself commented “Delete this”. This is also the page where your posts will appear. You will see the profile picture and name of the account that posted, the image front and center, and the caption. You can press the thumbs up to make the likes go up. Unfortunately, I did not implement a way to create comments as it was a bit too complicated.
This project took a while to complete and was difficult at times. Nobody knew how to get the like button to work for a while, but we eventually figured it out (Miku can finally have more likes). The app required wise use of states in React to make variables and lists, alongside scrollviews to allow endless content to fit.
Above, you can see the feed state, defined right before the accounts state. By default, the feed does have one post and you can see how all the components are set up. In hindsight, this is almost exactly like an array with an object in it of a class with all these instance variables. These “variables” are then referenced later in the React Native program, which is structured similarly to HTML, to display the post.
The car simulation program was to be used with a specific Arduino design. Specifically the one seen to the left.
After being activated by a button, the motor moves fast when the sensor is far from an object, but slows down when it gets close, simulating a self-driving car. There is even a light that blinks when near an object and blinks faster when very close. It can be turned off after pressing the button again.
I never liked making the circuit (Especially the physical one), yet I managed to complete them through each and every Arduino lesson. The code itself is a good example of sequencing, conditions, and iteration.
This specific program could be handy to use in an actual car. Perhaps it can be modified to automatically apply brakes when too close to something. I’m sure similar sensors and programs are utilized to control those self-driving cars, albeit much more advanced.
