While implementing the 2-card difficulty, I realized that my code needs some restructuring so that it's easier to look at and edit. So, though I haven't finished the 2-card difficulty, not only is my code organized better, it's also a lot easier to edit the layout/headers of almost every single screen. I also replaced the buttons/labels/backgrounds so that the whole app looks better in general.
Looking towards the future, I don't think I'll be able to complete the 3-card difficulty by next week. I've got an exam this week, a final next week, and a bunch of things that I need to take care of for my fraternity's work-week. Regardless, I'll have the 2-card difficulty complete, and if I need to I'll adjust graphics/layout further.
I finished the soldering! I also ran out of solder so it all works out. I wired up the board from the esc to the bread board and the bread board to the arduino. I then removed the arduino and set up a test breadboard that connected the arduino to the receiver to test the voltages coming from the receiver. During the hackathon I observed that the receiver outputted a voltage between .2 and .4 voltages from its signal pins. I then connected it to the analog pins. The arduino matches the max voltage to 1023: so 3.3 Volts = 1023. Doing some basic math, we see that our expected values for 0.2 V and 0.4 V will get a range between 62 and 124.
However when I test this with code I get values between 3 and 9 in a irregular pattern that do not react to the output from the receiver. I tested the input pins of the ardiuno and they can read and write correctly. There was a little confusion due to the board naming them 0 through 5 but calling them 14 through 19 in the software, but that was resolved. I have tested the voltage going into the board and it still shows that it is outputting correct voltage so I am a bit stumped right now. I am going to try and make a current divider tomorrow and see if that works.
EDIT: Thank you Prof. Moorthy for pointing out some data typos when talking about the values converted from voltage to an int and some old data being replaced. They have been corrected. I had did those calculates with 5v equaling 1023 but the board has 3.3v equaling 1023.
In the past 2 weeks I've gotten closer to getting the animation set up for the homepage. My android studio has finally been working with few errors. I've imported the images, set up an animation object, and written code for it, and am now trying to test it. I am now running into issues where when I run the emulator, the app crashes and then shows the old version of the app, so I am now looking into this issue. After this is solved, I will have to adjust the animation frames to make sure they are centered evenly, and I'm hoping this won't be a problem.
Unfortunately I didn't make as much progress as I would have hoped this past week. I broke my Ubuntu installation and actually lost a little progress finishing up email verification, took a day to reinstall Ubuntu, and redid what I previously had completed to catch back up.
Since then I encountered and fixed a logout error from the home page in which the page did not refresh appropriately. I have also began work on the back-end for custom spell lists. I have a few ideas for how to communicate between the angular front end and node back-end and am not sure of the best method to reduce API calls, but I'll figure it out and hopefully get a better idea at the next RCOS meeting next Tuesday.